diff -u smartmontools-5.38/debian/control smartmontools-5.38/debian/control --- smartmontools-5.38/debian/control +++ smartmontools-5.38/debian/control @@ -9,7 +9,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 @@ -95,8 +95,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 diff -u smartmontools-5.38/debian/changelog smartmontools-5.38/debian/changelog --- smartmontools-5.38/debian/changelog +++ smartmontools-5.38/debian/changelog @@ -1,3 +1,10 @@ +smartmontools (5.38-2ubuntu2) jaunty; urgency=low + + * debian/control: Depend on lsb >= 3.2-14, which has the status_of_proc() function. + * debian/smartmontools.init: Add the 'status' action (LP: #300535). + + -- Steven Danna Mon, 01 Dec 2008 23:41:09 -0500 + smartmontools (5.38-2ubuntu1) jaunty; urgency=low * Merge from debian unstable, remaining changes: