[Unit]
-Description=netdata
+Description=Linux real time system monitoring, done right
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
-ExecStart=@sbindir_POST@/netdata -pidfile $PIDFile
-ExecStop=/bin/kill -SIGTERM $MAINPID
+PIDFile=@localstatedir_POST@/run/netdata.pid
+ExecStart=@sbindir_POST@/netdata -P @localstatedir_POST@/run/netdata.pid
+KillMode=mixed
+KillSignal=SIGTERM
TimeoutStopSec=30
[Install]