debian.init stop and restart

This commit is contained in:
Pavel Ruzicka 2014-12-23 21:37:52 +01:00
parent 1a8eb4a8e1
commit 8c45661786

View file

@ -23,11 +23,17 @@ case "$1" in
#/bin/su - brmdoor -c 'cd /home/brmdoor; /usr/bin/screen -dmS brmd -c /home/brmdoor/.screenrc-brmd'
;;
stop|restart|force-reload)
# No-op
stop)
killall brmd.pl
;;
restart|force-reload)
killall brmd.pl
$(readlink -f "$0") start
;;
status)
# No-op
# status_of_proc -p $PIDFILE '/usr/bin/perl ./brmd.pl' brmd.pl
# could work but PIDFILE stores different (non-existent) pid
;;
*)
echo "Usage: $NAME {start|stop|restart|force-reload}" >&2