summaryrefslogtreecommitdiffstats
path: root/collectd.service
diff options
context:
space:
mode:
Diffstat (limited to 'collectd.service')
-rw-r--r--collectd.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/collectd.service b/collectd.service
new file mode 100644
index 0000000..523831c
--- /dev/null
+++ b/collectd.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Collectd
+After=local-fs.target network.target
+Requires=local-fs.target network.target
+
+[Service]
+EnvironmentFile=-/etc/sysconfig/collectd
+ExecStart=/usr/sbin/collectd -C /etc/collectd.conf -f
+Restart=always
+RestartSec=10
+StandardOutput=syslog
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target