From 073553667d1ebe35affdcd020b7720d3cf6a3740 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 9 Jun 2022 06:56:54 +0200 Subject: Passing --name to start-stop-daemon in netdata initscript to fix process identification issues with openrc, thanks to Gian Piero Carrubba (Closes: #1012395). Signed-off-by: Daniel Baumann --- debian/netdata-core.netdata.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/netdata-core.netdata.init b/debian/netdata-core.netdata.init index 42e29175..dc95589c 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" -- cgit v1.2.3