summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/smartmontools/files/initd.smartd
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/smartmontools/files/initd.smartd')
-rwxr-xr-xmeta-oe/recipes-extended/smartmontools/files/initd.smartd8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/smartmontools/files/initd.smartd b/meta-oe/recipes-extended/smartmontools/files/initd.smartd
index 29c27e475..54adcb406 100755
--- a/meta-oe/recipes-extended/smartmontools/files/initd.smartd
+++ b/meta-oe/recipes-extended/smartmontools/files/initd.smartd
@@ -16,8 +16,8 @@
16# Should-Start: sendmail 16# Should-Start: sendmail
17# Required-Stop: $syslog $remote_fs 17# Required-Stop: $syslog $remote_fs
18# Should-Stop: sendmail 18# Should-Stop: sendmail
19# Default-Start: 19# Default-Start: 2 3 4 5
20# Default-Stop: 0 1 2 3 4 5 6 20# Default-Stop: 0 1 6
21# Short-Description: Monitors disk and tape health via S.M.A.R.T. 21# Short-Description: Monitors disk and tape health via S.M.A.R.T.
22# Description: Start S.M.A.R.T. disk and tape monitor. 22# Description: Start S.M.A.R.T. disk and tape monitor.
23### END INIT INFO 23### END INIT INFO
@@ -52,6 +52,10 @@ smartd_opts="--pidfile $SMARTDPID $smartd_opts"
52 52
53case "$1" in 53case "$1" in
54 start) 54 start)
55 if [ "$start_smartd" != "yes" ]; then
56 [ "$VERBOSE" != "no" ] && echo "Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools"
57 exit 0
58 fi
55 echo -n "Starting S.M.A.R.T. daemon: smartd" 59 echo -n "Starting S.M.A.R.T. daemon: smartd"
56 if start-stop-daemon --start --quiet --pidfile $SMARTDPID \ 60 if start-stop-daemon --start --quiet --pidfile $SMARTDPID \
57 --exec $SMARTD_BIN -- $smartd_opts; then 61 --exec $SMARTD_BIN -- $smartd_opts; then