No need to wait 10 seconds before restarting
[collectd.git] / contrib / systemd.collectd.service
index 96df8a5..6a2953a 100644 (file)
@@ -11,15 +11,9 @@ EnvironmentFile=-/etc/default/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
+Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target