summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"