(fix) chown pid file before stopping

This commit is contained in:
Francis Lachapelle
2019-10-03 14:11:24 -04:00
parent d8b6feafc5
commit 349be8b4db

View File

@@ -76,6 +76,7 @@ case "$1" in
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
chown -f root:root $PIDFILE
start-stop-daemon -c $USER --stop --pidfile $PIDFILE --retry=TERM/20/KILL/5 --oknodo
rm -f $PIDFILE
log_end_msg 0