summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:56:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-06-09 04:56:54 +0000
commit84c2475fe86a3f47a0143ca5f699f49f0bbd7d91 (patch)
tree58f8a016cacb06e51e766f09454d8fd68826fcb2
parentUpdating to standards version 4.6.1. (diff)
downloadnetdata-84c2475fe86a3f47a0143ca5f699f49f0bbd7d91.tar.xz
netdata-84c2475fe86a3f47a0143ca5f699f49f0bbd7d91.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>
Diffstat (limited to '')
-rw-r--r--debian/netdata-core.netdata.init6
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"