chore(debian): don't call chown if pid file doesn't exist
parent
06814c2dee
commit
4628292fb3
|
@ -71,7 +71,7 @@ case "$1" in
|
|||
then
|
||||
log_progress_msg "already running"
|
||||
fi
|
||||
chown root:root $PIDFILE
|
||||
[ -e $PIDFILE ] && chown root:root $PIDFILE
|
||||
log_end_msg 0
|
||||
;;
|
||||
stop)
|
||||
|
@ -91,7 +91,7 @@ case "$1" in
|
|||
install -o $USER -g adm -m 750 -d /var/spool/$NAME
|
||||
install -o $USER -g adm -m 750 -d /var/log/$NAME
|
||||
start-stop-daemon -c $USER --quiet --start --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
|
||||
chown root:root $PIDFILE
|
||||
[ -e $PIDFILE ] && chown root:root $PIDFILE
|
||||
log_end_msg 0
|
||||
;;
|
||||
status)
|
||||
|
|
Loading…
Reference in New Issue