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