Let systemd handle logging
[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
11 # Tell systemd it will receive a notification from collectd over it's control
12 # socket once the daemon is ready. See systemd.service(5) for more details.
13 Type=notify
14 NotifyAccess=main
15
16 # Restart the collectd daemon after a 10 seconds delay, in case it crashes.
17 Restart=always
18 RestartSec=10
19
20 [Install]
21 WantedBy=multi-user.target