Code

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 bf21e414216edf0b4e1a20d95aea61d00ad70c71..ba922d6ec778b50f8dca3848abca50136dd183ab 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]