X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fsystemd-timesyncd.service.in;h=030e4a0423d16b4b2f1f18704493d31576e9852d;hp=21015c64b1b33a2bf11282364bfb7d1b2d91cd77;hb=6a010ac9e5aa585637b4b79df92f8ca5537faf71;hpb=09681374393d74d9d6c92e44f9e6fa091ad61555 diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in index 21015c64b..030e4a042 100644 --- a/units/systemd-timesyncd.service.in +++ b/units/systemd-timesyncd.service.in @@ -9,13 +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 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