diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-06-09 04:56:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-06-09 05:22:37 +0000 |
commit | 073553667d1ebe35affdcd020b7720d3cf6a3740 (patch) | |
tree | 4c538f67903414cc040928d67542793ffda503ed | |
parent | Updating to standards version 4.6.1. (diff) | |
download | netdata-073553667d1ebe35affdcd020b7720d3cf6a3740.tar.xz netdata-073553667d1ebe35affdcd020b7720d3cf6a3740.zip |
Passing --name to start-stop-daemon in netdata initscript to fix process identification issues with openrc, thanks to Gian Piero Carrubba <debian-bts@rm-rf.it> (Closes: #1012395).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | debian/netdata-core.netdata.init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/netdata-core.netdata.init b/debian/netdata-core.netdata.init index 42e291751..dc95589cb 100644 --- a/debian/netdata-core.netdata.init +++ b/debian/netdata-core.netdata.init @@ -46,8 +46,8 @@ case "$1" in log_action_begin_msg "Starting $DESC" - if start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON --test; then - if start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON -- $DAEMON_ARGS; then + if start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME --startas $DAEMON --test; then + if start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $DAEMON_ARGS; then log_action_end_msg 0 else log_action_end_msg 1 @@ -65,7 +65,7 @@ case "$1" in exit 0 fi - if start-stop-daemon --stop --quiet --pidfile $PIDFILE --retry=$STOP_SCHEDULE; then + if start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --retry=$STOP_SCHEDULE; then log_action_end_msg 0 else log_action_end_msg 1 "$DAEMON died: process $pid not running; or permission denied" |