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=a20621dd581c8d5d71e07a26ad81547e284c80ad;hp=ec2871455e88fddf5672e0e1efe9cf4d76fcc246;hb=3a0efd7030af9d08a791626ace940805aeafd565;hpb=ece6e766cf89c8ec82ad135969dedf16cd7c1ee8 diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in index ec2871455..a20621dd5 100644 --- a/units/systemd-timesyncd.service.in +++ b/units/systemd-timesyncd.service.in @@ -11,18 +11,22 @@ Documentation=man:systemd-timesyncd.service(8) ConditionCapability=CAP_SYS_TIME DefaultDependencies=off RequiresMountsFor=/var/lib/systemd/clock -After=systemd-remount-fs.service +After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-sysusers.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 CAP_CHOWN CAP_DAC_OVERRIDE +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]