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