]> git.proxmox.com Git - mirror_smartmontools-debian.git/commitdiff
support status action in init script
authorGuido Günther <agx@sigxcpu.org>
Wed, 22 Apr 2009 21:26:37 +0000 (23:26 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 22 Apr 2009 21:26:37 +0000 (23:26 +0200)
Closes: #525196
Thanks: Peter Eisentraut

debian/control
debian/smartmontools.init

index 8a414682d194b2b41ab1bbe009eb4dd315f72ac3..da12f698f7f207c5e108b02af108c7fd5c8db6d0 100644 (file)
@@ -11,7 +11,7 @@ Homepage: http://smartmontools.sourceforge.net/
 Package: smartmontools
 Architecture: any
 Conflicts: smartsuite, ucsc-smartsuite
-Depends: ${misc:Depends}, ${shlibs:Depends}, debianutils (>= 2.2), lsb-base (>= 3.0-10)
+Depends: ${misc:Depends}, ${shlibs:Depends}, debianutils (>= 2.2), lsb-base (>= 3.2-13)
 Recommends: mailx | mailutils
 Suggests: gsmartcontrol, smart-notifier
 Description: control and monitor storage systems using S.M.A.R.T.
index ad80cc2dc7b903bc39b93ac1030164d4f68672de..6147035dae69af9c724e2346e5e75d4c2bdf6782 100644 (file)
@@ -125,8 +125,11 @@ case "$1" in
            fi
        fi
         ;;
+  status)
+       status_of_proc -p "$PIDFILE" "$DAEMON" "smartd" && exit 0 || exit $?
+       ;;
   *)
-       echo "Usage: /etc/init.d/smartmontools {start|stop|restart|reload|force-reload}"
+       echo "Usage: /etc/init.d/smartmontools {start|stop|restart|reload|force-reload|status}"
        exit 1
 esac