X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=contrib%2Fsystemd.collectd.service;h=50820bd7389f7bc31742cbe64c8a3295a5c8c65e;hb=71bc7b2a9bf47879ce1824d295465de29ca9b152;hp=96df8a576a694670f1af076e344b0be7f1c45767;hpb=8eb05d21637cd1eb3b6c4c4d3ed519cc2fd3ebf6;p=collectd.git diff --git a/contrib/systemd.collectd.service b/contrib/systemd.collectd.service index 96df8a57..50820bd7 100644 --- a/contrib/systemd.collectd.service +++ b/contrib/systemd.collectd.service @@ -7,19 +7,15 @@ Requires=local-fs.target network.target ExecStart=/usr/sbin/collectd EnvironmentFile=-/etc/sysconfig/collectd EnvironmentFile=-/etc/default/collectd +ProtectSystem=full +ProtectHome=true # 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