summaryrefslogtreecommitdiffstats
path: root/system/netdata.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'system/netdata.service.in')
-rw-r--r--system/netdata.service.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/netdata.service.in b/system/netdata.service.in
new file mode 100644
index 000000000..bc26cc9dc
--- /dev/null
+++ b/system/netdata.service.in
@@ -0,0 +1,16 @@
+[Unit]
+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]
+Type=forking
+WorkingDirectory=/tmp
+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
+TimeoutStopSec=30
+
+[Install]
+WantedBy=multi-user.target