mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-07 11:14:01 +02:00
debian.init stop and restart
This commit is contained in:
parent
1a8eb4a8e1
commit
8c45661786
1 changed files with 8 additions and 2 deletions
10
debian.init
10
debian.init
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue