]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - debian/smartmontools.init
Remove '/var/lib/smartmontools' on purge (Closes: #766145)
[mirror_smartmontools-debian.git] / debian / smartmontools.init
index ae2da41f9581614904aa8b05d86c156b238dc0b6..a64b0e6e06a50840295992383341d013831e7876 100644 (file)
@@ -25,6 +25,7 @@ PIDFILE=/var/run/smartd.pid
 
 RET=0
 
+[ -r /etc/default/rcS ] && . /etc/default/rcS
 [ -r /etc/default/smartmontools ] && . /etc/default/smartmontools
 
 smartd_opts="--pidfile $PIDFILE $smartd_opts"
@@ -43,7 +44,7 @@ enable_smart() {
 
 check_start_smartd_option() {
   if [ ! "$start_smartd" = "yes" ]; then
-    log_warning_msg "Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools"
+    [ "$VERBOSE" = "yes" ] && log_warning_msg "Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools"
     return 1
   else
     return 0
@@ -126,7 +127,7 @@ case "$1" in
        fi
         ;;
   status)
-       status_of_proc -p "$PIDFILE" "$DAEMON" "smartd" && exit 0 || exit $?
+       status_of_proc $DAEMON smartd && exit 0 || exit $?
        ;;
   *)
        echo "Usage: /etc/init.d/smartmontools {start|stop|restart|reload|force-reload|status}"