summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2267812)
raw | patch | inline | side by side (parent: 2267812)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 19 Nov 2014 10:12:55 +0000 (11:12 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 19 Nov 2014 11:04:45 +0000 (12:04 +0100) |
contrib/systemd.collectd.service | [new file with mode: 0644] | patch | blob |
diff --git a/contrib/systemd.collectd.service b/contrib/systemd.collectd.service
--- /dev/null
@@ -0,0 +1,23 @@
+[Unit]
+Description=Collectd
+After=local-fs.target network.target
+Requires=local-fs.target network.target
+
+[Service]
+ExecStart=/usr/sbin/collectd
+
+# Tell systemd it will receive a notification from collectd over it's control
+# socket once the daemon is ready. See systemd.service(5) for more details.
+Type=notify
+NotifyAccess=main
+
+# Restart the collectd daemon after a 10 seconds delay, in case it crashes.
+Restart=always
+RestartSec=10
+
+# Send all console messages to syslog.
+StandardOutput=syslog
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target