Merge branch '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 #   processes       CAP_NET_ADMIN  (CollectDelayAccounting only)
26 #   smart           CAP_SYS_RAWIO
27 #   turbostat       CAP_SYS_RAWIO
28 #
29 # Example, if you use the iptables plugin alongside the dns or ping plugin:
30 #CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
31 #
32 # By default, drop all capabilities:
33 CapabilityBoundingSet=
34
35 # Tell systemd it will receive a notification from collectd over its control
36 # socket once the daemon is ready. See systemd.service(5) for more details.
37 Type=notify
38
39 # Restart the collectd daemon when it fails.
40 Restart=on-failure
41
42 [Install]
43 WantedBy=multi-user.target