X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=contrib%2Fsystemd.collectd.service;h=fe535bfe86bcf49bbf4a80e7cb00c96f666153a2;hp=efd922a6bf01b00d57081349efef4f412605a7c9;hb=2bc8f11d9c7182e24fb62a6efefa3e0b74ac0afb;hpb=08e419e462e8373538a7aef768bae0b2478e0e89 diff --git a/contrib/systemd.collectd.service b/contrib/systemd.collectd.service index efd922a6..fe535bfe 100644 --- a/contrib/systemd.collectd.service +++ b/contrib/systemd.collectd.service @@ -8,22 +8,6 @@ Requires=local-fs.target network-online.target ExecStart=/usr/sbin/collectd EnvironmentFile=-/etc/sysconfig/collectd EnvironmentFile=-/etc/default/collectd -ProtectSystem=full -ProtectHome=true - -# Some plugins require access to data located in a specified folder, to access -# this data you'll have to specify the path by using the Environment directive -# below. -# -# Here's a (incomplete) list of the plugins known environment requirements: -# intel_pmu XDG_CACHE_HOME -# -# Example, if you use the intel_pmu plugin and cache is located in the /opt -# directory: -# Environment=XDG_CACHE_HOME=/opt -# -# By default, the HOME directory is chosen: -Environment= # A few plugins won't work without some privileges, which you'll have to # specify using the CapabilityBoundingSet directive below. @@ -36,6 +20,7 @@ Environment= # intel_pmu CAP_SYS_ADMIN # iptables CAP_NET_ADMIN # ping CAP_NET_RAW +# processes CAP_NET_ADMIN (CollectDelayAccounting only) # smart CAP_SYS_RAWIO # turbostat CAP_SYS_RAWIO # @@ -45,8 +30,6 @@ Environment= # By default, drop all capabilities: CapabilityBoundingSet= -NoNewPrivileges=true - # Tell systemd it will receive a notification from collectd over its control # socket once the daemon is ready. See systemd.service(5) for more details. Type=notify