Skip to content

Commit

Permalink
debian.init stop and restart
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzaq committed Dec 23, 2014
1 parent 1a8eb4a commit 8c45661
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions debian.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c45661

Please sign in to comment.