Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
smartmontools
smartmontools-sysconfig.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File smartmontools-sysconfig.patch of Package smartmontools
--- smartd.initd.in +++ smartd.initd.in @@ -141,8 +141,18 @@ # Existence of config file is optional SMARTD_CONFIG=/etc/smartd.conf -# source configuration file. This should set the shell variable smartd_opts - [ -r /etc/default/smartmontools ] && . /etc/default/smartmontools + # source configuration file. + [ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools + smartd_opts= + if test -n "$SMARTD_CHECK_INTERVAL" -a "$SMARTD_CHECK_INTERVAL" != 1800 ; then + smartd_opts=" -i $SMARTD_CHECK_INTERVAL" + fi + if test -n "$SMARTD_LOG_FACILITY" -a "$SMARTD_LOG_FACILITY" != "daemon" ; then + smartd_opts="$smartd_opts -l $SMARTD_LOG_FACILITY" + fi + if test -n "$SMARTD_DRIVEDB" ; then + smartd_opts="$smartd_opts -B $SMARTD_DRIVEDB" + fi # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status @@ -185,7 +195,7 @@ # We don't use startproc - we need to check for return code 17. if ! /sbin/checkproc $SMARTD_BIN ; then - $SMARTD_BIN $smartd_opts + $SMARTD_BIN$smartd_opts # Remember status and be verbose if test $? -ne 17 ; then rc_status -v
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor