X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fsystemd-timesyncd.service.in;h=cbde3ff67aa9ef08d471db3abb436be4f7abbbc0;hp=158438e627e6968683acab5e4e5c1616c9e1b0c9;hb=a52ec8ed881537627869afa8f0486db7e20ce2db;hpb=a349eb10d3c3a31cd47198cbf08e4f0dfaffef1d diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in index 158438e62..cbde3ff67 100644 --- a/units/systemd-timesyncd.service.in +++ b/units/systemd-timesyncd.service.in @@ -9,16 +9,21 @@ 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 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 +WatchdogSec=1min [Install] -WantedBy=multi-user.target +WantedBy=sysinit.target