From 7b77f7dc314a291659227323850864eaf12ff246 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Tue, 8 May 2012 23:33:33 +0300 Subject: [PATCH] Updated init script in debian package. --- debian/uhub.init | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/uhub.init b/debian/uhub.init index 7d4ae4f..67c068c 100644 --- a/debian/uhub.init +++ b/debian/uhub.init @@ -5,7 +5,8 @@ # Required-Stop: $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 -# Short-Description: uhub - High performance ADC p2p hub. +# Short-Description: Start daemon at boot time +# Description: Enable service provided by daemon. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -83,8 +84,12 @@ case "$1" in $0 start ;; + status) + status_of_proc $DAEMON $NAME && exit 0 || exit $? + ;; + *) - echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac