Merge pull request #3339 from jkohen/patch-1
[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
9 # Tell systemd it will receive a notification from collectd over it's control
10 # socket once the daemon is ready. See systemd.service(5) for more details.
11 Type=notify
12 NotifyAccess=main
13
14 # Restart the collectd daemon after a 10 seconds delay, in case it crashes.
15 Restart=always
16 RestartSec=10
17
18 # Send all console messages to syslog.
19 StandardOutput=syslog
20 StandardError=syslog
21
22 [Install]
23 WantedBy=multi-user.target