Code

systemd service file: check for config file presence.
[pkg-collectd.git] / debian / collectd-core.collectd.service
1 [Unit]
2 Description=Statistics collection and monitoring daemon
3 After=local-fs.target network.target
4 Requires=local-fs.target network.target
5 ConditionPathExists=/etc/collectd/collectd.conf
6 Documentation=man:collectd(1)
7 Documentation=man:collectd.conf(5)
8 Documentation=https://collectd.org
10 [Service]
11 Type=notify
12 NotifyAccess=main
13 EnvironmentFile=-/etc/default/collectd
14 ExecStart=/usr/sbin/collectd
15 Restart=always
16 RestartSec=10
18 [Install]
19 WantedBy=multi-user.target