Module: sems Branch: master Commit: 87a70ae5b6593f11a10a6d75e929e0532bb361c9 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=87a70ae5b6593f11a10a6d75e929e0532bb361c9
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Feb 28 16:56:19 2011 +0100 making debian sems.init lsb compliant Patch by Jon Bonilla --- pkg/debian/sems.init | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pkg/debian/sems.init b/pkg/debian/sems.init index 210b068..6183e96 100644 --- a/pkg/debian/sems.init +++ b/pkg/debian/sems.init @@ -56,18 +56,20 @@ export LD_LIBRARY_PATH set -e +. /lib/lsb/init-functions + case "$1" in start) echo "Starting $DESC: $NAME" - start-stop-daemon --start --quiet --pidfile $SEMS_PIDFILE \ + start-stop-daemon --start --quiet --oknodo --pidfile $SEMS_PIDFILE \ --exec $DAEMON -- $PARAMS - echo "." + log_end_msg $? ;; stop) echo -n "Stopping $DESC: $NAME" start-stop-daemon --oknodo --stop --quiet --pidfile $SEMS_PIDFILE \ --exec $DAEMON - echo "." + log_end_msg $? ;; #reload) # @@ -104,10 +106,13 @@ case "$1" in $SEMS_PIDFILE --exec $DAEMON -- $PARAMS echo "." ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
