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