Make /home, /root and /run/user inaccessible
[collectd.git] / contrib / systemd.collectd.service
index ba922d6..50820bd 100644 (file)
@@ -7,6 +7,8 @@ Requires=local-fs.target network.target
 ExecStart=/usr/sbin/collectd
 EnvironmentFile=-/etc/sysconfig/collectd
 EnvironmentFile=-/etc/default/collectd
+ProtectSystem=full
+ProtectHome=true
 
 # Tell systemd it will receive a notification from collectd over it's control
 # socket once the daemon is ready. See systemd.service(5) for more details.
@@ -14,7 +16,6 @@ Type=notify
 
 # Restart the collectd daemon after a 10 seconds delay, in case it crashes.
 Restart=on-failure
-RestartSec=10
 
 [Install]
 WantedBy=multi-user.target