Merge branch 'collectd-5.7' into collectd-5.8
[collectd.git] / contrib / systemd.collectd.service
1 [Unit]
2 Description=Collectd statistics daemon
3 Documentation=man:collectd(1) man:collectd.conf(5)
4 After=local-fs.target network-online.target
5 Requires=local-fs.target network-online.target
6
7 [Service]
8 ExecStart=/usr/sbin/collectd
9 EnvironmentFile=-/etc/sysconfig/collectd
10 EnvironmentFile=-/etc/default/collectd
11 ProtectSystem=full
12 ProtectHome=true
13
14 # A few plugins won't work without some privileges, which you'll have to
15 # specify using the CapabilityBoundingSet directive below.
16 #
17 # Here's a (incomplete) list of the plugins known capability requirements:
18 #   ceph            CAP_DAC_OVERRIDE
19 #   dns             CAP_NET_RAW
20 #   exec            CAP_SETUID CAP_SETGID
21 #   intel_rdt       CAP_SYS_RAWIO
22 #   intel_pmu       CAP_SYS_ADMIN
23 #   iptables        CAP_NET_ADMIN
24 #   ping            CAP_NET_RAW
25 #   smart           CAP_SYS_RAWIO
26 #   turbostat       CAP_SYS_RAWIO
27 #
28 # Example, if you use the iptables plugin alongside the dns or ping plugin:
29 #CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
30 #
31 # By default, drop all capabilities:
32 CapabilityBoundingSet=
33
34 # Tell systemd it will receive a notification from collectd over its control
35 # socket once the daemon is ready. See systemd.service(5) for more details.
36 Type=notify
37
38 # Restart the collectd daemon when it fails.
39 Restart=on-failure
40
41 [Install]
42 WantedBy=multi-user.target