Package: uptimed Version: 0.3.16-3.2 Severity: wishlist Tags: patch
Here is a patch to add support for the "status" action to the init script of uptimed.
--- uptimed-0.3.16/debian/changelog +++ uptimed-0.3.16/debian/changelog @@ -1,3 +1,9 @@ +uptimed (1:0.3.16-3.3) UNRELEASED; urgency=low + + * Add support for status action to init script + + -- Peter Eisentraut <[email protected]> Sun, 16 Oct 2011 15:08:15 +0300 + uptimed (1:0.3.16-3.2) unstable; urgency=low * Non-maintainer upload with maintainer approval. --- uptimed-0.3.16/debian/uptimed.init +++ uptimed-0.3.16/debian/uptimed.init @@ -16,6 +16,8 @@ test -f $DAEMON || exit 0 +. /lib/lsb/init-functions + case "$1" in start) echo -n "Starting $DESC: " @@ -43,9 +45,12 @@ fi echo "$NAME." ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac --- uptimed-0.3.16/debian/control +++ uptimed-0.3.16/debian/control @@ -7,7 +7,7 @@ Package: uptimed Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends} +Depends: ${misc:Depends}, ${shlibs:Depends}, lsb-base Description: Utility to track your highest uptimes Uptimed allows you to track your highest uptimes via boot IDs. It uses the system boot time to keep sessions apart from each

