(fix) chown pid file before stopping

pull/259/head
Francis Lachapelle 2019-10-03 14:11:24 -04:00
parent d8b6feafc5
commit 349be8b4db
1 changed files with 1 additions and 0 deletions

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