Merge branch 'collectd-5.4' into collectd-5.5
[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 ProtectHome=true
12
13 # drop all capabilities:
14 CapabilityBoundingSet=
15 # use this instead if you use the dns or ping plugin
16 #CapabilityBoundingSet=CAP_NET_RAW
17 # turn this on if you use the iptables next to the dns or ping plugin
18 #CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
19
20 NoNewPrivileges=true
21
22 # Tell systemd it will receive a notification from collectd over it's control
23 # socket once the daemon is ready. See systemd.service(5) for more details.
24 Type=notify
25
26 # Restart the collectd daemon after a 10 seconds delay, in case it crashes.
27 Restart=on-failure
28
29 [Install]
30 WantedBy=multi-user.target