Only restart collectd on failure
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 9 Sep 2015 15:49:10 +0000 (17:49 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Sep 2015 18:41:33 +0000 (20:41 +0200)
Do what the comment says ;)

contrib/systemd.collectd.service

index bf21e41..ba922d6 100644 (file)
@@ -13,7 +13,7 @@ EnvironmentFile=-/etc/default/collectd
 Type=notify
 
 # Restart the collectd daemon after a 10 seconds delay, in case it crashes.
-Restart=always
+Restart=on-failure
 RestartSec=10
 
 [Install]