diff --git a/debian/chrono.init b/debian/chrono.init index 2a6ffbe4..487fcfc8 100644 --- a/debian/chrono.init +++ b/debian/chrono.init @@ -64,7 +64,7 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - start-stop-daemon --start --quiet --exec $DAEMON -- \ + start-stop-daemon --start --quiet --user $USER --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 } @@ -124,7 +124,7 @@ case "$1" in esac ;; status) - status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + status_of_proc -p $PIDFILE "$DAEMON" "$NAME" && exit 0 || exit $? ;; reload|force-reload) #