[Unit]
-Description=netdata
+Description=Linux real time system monitoring, over the web
After=network.target httpd.service squid.service nfs-server.service mysqld.service named.service postfix.service
[Service]
WorkingDirectory=/tmp
User=root
Group=root
-PIDFile=@localstatedir_POST@/run/netdata/netdata.pid
-ExecStartPre=/usr/bin/mkdir -p @localstatedir_POST@/run/netdata
-ExecStart=@sbindir_POST@/netdata -pidfile @localstatedir_POST@/run/netdata/netdata.pid
-ExecStop=/bin/kill -SIGTERM $MAINPID
+PIDFile=@localstatedir_POST@/run/netdata.pid
+ExecStart=@sbindir_POST@/netdata -pidfile @localstatedir_POST@/run/netdata.pid
+KillMode=mixed
+KillSignal=SIGTERM
TimeoutStopSec=30
[Install]