chiark / gitweb /
Move handling of sysv initscripts to a generator
[elogind.git] / units / systemd-timesyncd.service.in
index 158438e627e6968683acab5e4e5c1616c9e1b0c9..3a1bc48a91e91de6ba2eb8ded0dfe2fe55ccd2d0 100644 (file)
@@ -9,16 +9,25 @@
 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
+Wants=time-sync.target
+Before=time-sync.target
 
 [Service]
 Type=notify
 Restart=always
 RestartSec=0
 ExecStart=@rootlibexecdir@/systemd-timesyncd
-CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP
+CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER
 PrivateTmp=yes
 PrivateDevices=yes
+ProtectSystem=full
+ProtectHome=yes
+WatchdogSec=1min
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sysinit.target