Merge branch 'collectd-5.6' into collectd-5.7
[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 #   iptables        CAP_NET_ADMIN
22 #   ping            CAP_NET_RAW
23 #   smart           CAP_SYS_RAWIO
24 #   turbostat       CAP_SYS_RAWIO
25 #
26 # Example, if you use the iptables plugin alongside the dns or ping plugin:
27 #CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
28 #
29 # By default, drop all capabilities:
30 CapabilityBoundingSet=
31
32 NoNewPrivileges=true
33
34 # Tell systemd it will receive a notification from collectd over it's 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