065913355ba5aa11b7079aebfeaafad9d3324185
[collectd.git] / contrib / systemd.collectd.service
1 [Unit]
2 Description=Collectd
3 After=local-fs.target network.target
4 Requires=local-fs.target network.target
5
6 [Service]
7 ExecStart=/usr/sbin/collectd
8 EnvironmentFile=-/etc/sysconfig/collectd
9 EnvironmentFile=-/etc/default/collectd
10 ProtectSystem=full
11
12 # Tell systemd it will receive a notification from collectd over it's control
13 # socket once the daemon is ready. See systemd.service(5) for more details.
14 Type=notify
15
16 # Restart the collectd daemon after a 10 seconds delay, in case it crashes.
17 Restart=on-failure
18
19 [Install]
20 WantedBy=multi-user.target