From e55f919b7baa32dd3b2e6a07223002ea693f6ebe Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Sun, 8 May 2016 12:10:46 -0400 Subject: Let systemd handle killing the processes By setting `KillMode` to `mixed`, systemd will send `KillSignal` to the main process. It will then wait `TimeoutStopSec` and then send `SIGKILL` to all processes in the cgroup. This appears to be the desired behavior. --- system/netdata.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/netdata.service.in b/system/netdata.service.in index bc26cc9dcc..91db6122d8 100644 --- a/system/netdata.service.in +++ b/system/netdata.service.in @@ -9,7 +9,8 @@ User=root Group=root PIDFile=@localstatedir_POST@/run/netdata.pid ExecStart=@sbindir_POST@/netdata -pidfile @localstatedir_POST@/run/netdata.pid -ExecStop=/bin/kill -SIGTERM $MAINPID +KillMode=mixed +KillSignal=SIGTERM TimeoutStopSec=30 [Install] -- cgit v1.2.3