Package: smartmontools Version: 5.38-3 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
The attached patch adds a "status" action for the smartmontools.init script. Please have a look and apply if you like it. In Ubuntu, we've applied the attached patch to achieve the following: * Merge from debian unstable, remaining changes: - debian/control: Depend on lsb >= 3.2-14, which has the status_of_proc() function. - debian/smartmontools.init: Add the 'status' action We thought you might be interested in doing the same. Thanks, Michael -- System Information: Debian Release: squeeze/sid APT prefers karmic-security APT policy: (500, 'karmic-security'), (500, 'karmic'), (300, 'karmic-security'), (300, 'karmic') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-9-generic (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u smartmontools-5.38/debian/changelog smartmontools-5.38/debian/changelog diff -u smartmontools-5.38/debian/control smartmontools-5.38/debian/control --- smartmontools-5.38/debian/control +++ smartmontools-5.38/debian/control @@ -11,7 +12,7 @@ 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-14) Recommends: mailx | mailutils Description: control and monitor storage systems using S.M.A.R.T. The smartmontools package contains two utility programs (smartctl and smartd) diff -u smartmontools-5.38/debian/smartmontools.init smartmontools-5.38/debian/smartmontools.init --- smartmontools-5.38/debian/smartmontools.init +++ smartmontools-5.38/debian/smartmontools.init @@ -125,8 +126,11 @@ fi fi ;; + status) + status_of_proc -p $SMARTDPID $SMARTD 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