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