Code

Add collectd systemd unit file
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 29 Jun 2012 16:45:49 +0000 (18:45 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 29 Jun 2012 16:45:49 +0000 (18:45 +0200)
contrib/collectd.service [new file with mode: 0644]

diff --git a/contrib/collectd.service b/contrib/collectd.service
new file mode 100644 (file)
index 0000000..ee4d596
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=statistics collection daemon
+Documentation=man:collectd(1)
+After=local-fs.target network.target
+Requires=local-fs.target network.target
+
+[Service]
+ExecStart=/usr/sbin/collectd -C /etc/collectd/collectd.conf -f
+Restart=always
+RestartSec=10
+StandardOutput=syslog
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target