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 # A few plugins won't work without some privileges, which you'll have to
14 # specify using the CapabilityBoundingSet directive below.
15 #
16 # Here's a (incomplete) list of the plugins known capability requirements:
17 #   ceph            CAP_DAC_OVERRIDE
18 #   dns             CAP_NET_RAW
19 #   exec            CAP_SETUID CAP_SETGID
20 #   iptables        CAP_NET_ADMIN
21 #   ping            CAP_NET_RAW
22 #   turbostat       CAP_SYS_RAWIO
23 #
24 # Example, if you use the iptables plugin alongside the dns or ping plugin:
25 #CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
26 #
27 # By default, drop all capabilities:
28 CapabilityBoundingSet=
29
30 NoNewPrivileges=true
31
32 # Tell systemd it will receive a notification from collectd over it's control
33 # socket once the daemon is ready. See systemd.service(5) for more details.
34 Type=notify
35
36 # Restart the collectd daemon after a 10 seconds delay, in case it crashes.
37 Restart=on-failure
38
39 [Install]
40 WantedBy=multi-user.target