summaryrefslogtreecommitdiffstats
path: root/system/netdata-systemd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system/netdata-systemd16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/netdata-systemd b/system/netdata-systemd
new file mode 100644
index 000000000..7033cef67
--- /dev/null
+++ b/system/netdata-systemd
@@ -0,0 +1,16 @@
+[Unit]
+Description=netdata
+After=network.target httpd.service squid.service nfs-server.service mysqld.service named.service postfix.service
+
+[Service]
+Type=forking
+WorkingDirectory=/tmp
+User=root
+Group=root
+PIDFile=/var/run/netdata/netdata.pid
+ExecStart=/usr/sbin/netdata
+ExecStop=/bin/kill -SIGTERM $MAINPID
+TimeoutStopSec=30
+
+[Install]
+WantedBy=multi-user.target