chiark / gitweb /
units: make use of PrivateTmp=yes and PrivateDevices=yes for all our long-running...
[elogind.git] / units / systemd-hostnamed.service.in
index a9a99136c01acfbabcbf1c4a0deae829a854bacb..c8bf8480c9762520b286ef0452da4daa2a1eb2bd 100644 (file)
@@ -5,12 +5,15 @@
 #  the Free Software Foundation; either version 2.1 of the License, or
 #  (at your option) any later version.
 
-# See systemd.special(7) for details
-
 [Unit]
 Description=Hostname Service
+Documentation=man:systemd-hostnamed.service(8) man:hostname(5) man:machine-info(5)
+Documentation=http://www.freedesktop.org/wiki/Software/systemd/hostnamed
 
 [Service]
 ExecStart=@rootlibexecdir@/systemd-hostnamed
 BusName=org.freedesktop.hostname1
-CapabilityBoundingSet=CAP_SYS_ADMIN
+CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE
+WatchdogSec=1min
+PrivateTmp=yes
+PrivateDevices=yes