From 746c4c1a2bdf02a1167e3aebfe100c7069cdbd04 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Thu, 20 Dec 2018 10:56:03 +0100 Subject: [PATCH] debian/init.d: be more specific on uwsgi daemon (#29248) --- debian/chrono.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) #