Remove PIDFILE after stop

This commit is contained in:
Luke Van Seters 2021-12-20 12:43:27 -05:00
parent 6e8d898cb0
commit a2f8b5c08e

View File

@ -23,6 +23,7 @@ case "$1" in
stop)
echo -n "Stopping daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
rm $PIDFILE
echo "."
;;
tail)
@ -31,6 +32,7 @@ case "$1" in
restart)
echo -n "Restarting daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
rm $PIDFILE
start-stop-daemon \
--background \
--chdir /app \