@cryptotaxi247 / netdata-1 / commits / e55f919b7

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.

Michael Johnson committed May 8, 2016 at 12:10 UTC e55f919b7baa32dd3b2e6a07223002ea693f6ebe
1 file changed +2 -1
system/netdata.service.in
+2 -1
@@ -9,7 +9,8 @@ User=root
9 Group=root
10 PIDFile=@localstatedir_POST@/run/netdata.pid
11 ExecStart=@sbindir_POST@/netdata -pidfile @localstatedir_POST@/run/netdata.pid
12 -ExecStop=/bin/kill -SIGTERM $MAINPID
12 +KillMode=mixed
13 +KillSignal=SIGTERM
14 TimeoutStopSec=30
15
16 [Install]