chiark / gitweb /
bus-proxy: drop priviliges if we can
[elogind.git] / units / systemd-timesyncd.service.in
index e279d1bc29f054c5f996abc3dc004dde20767c74..030e4a0423d16b4b2f1f18704493d31576e9852d 100644 (file)
@@ -9,14 +9,23 @@
 Description=Network Time Synchronization
 Documentation=man:systemd-timesyncd.service(8)
 ConditionCapability=CAP_SYS_TIME
-After=systemd-networkd.service
+DefaultDependencies=off
+RequiresMountsFor=/var/lib/systemd/clock
+After=systemd-remount-fs.service systemd-tmpfiles-setup.service
+Before=sysinit.target shutdown.target
+Conflicts=shutdown.target
 
 [Service]
 Type=notify
 Restart=always
 RestartSec=0
 ExecStart=@rootlibexecdir@/systemd-timesyncd
-CapabilityBoundingSet=CAP_SYS_TIME
+CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER
+PrivateTmp=yes
+PrivateDevices=yes
+ReadOnlySystem=yes
+ProtectedHome=yes
+WatchdogSec=1min
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sysinit.target