X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fhwclock-load.service;h=f278a671a34c37a094fb550a7263f7b73027db5e;hp=6a1951ad099185ca779376dfd89453185da63796;hb=4466194c43a25bc51b21226f04245131e698bb3f;hpb=eb8d87c12540b96a1e1935498e9a6f8ff2f2dd61 diff --git a/units/hwclock-load.service b/units/hwclock-load.service index 6a1951ad0..f278a671a 100644 --- a/units/hwclock-load.service +++ b/units/hwclock-load.service @@ -8,9 +8,10 @@ [Unit] Description=Apply System Clock UTC Offset DefaultDependencies=no +Wants=time-sync.target Conflicts=shutdown.target After=systemd-readahead-collect.service systemd-readahead-replay.service -Before=basic.target shutdown.target udev.service +Before=sysinit.target shutdown.target udev.service time-sync.target [Service] Type=oneshot @@ -18,7 +19,7 @@ RemainAfterExit=yes ExecStart=/sbin/hwclock --systz StandardOutput=syslog -# Note the weird semantics if hwclock and the kernel here: the first +# Note the weird semantics of hwclock and the kernel here: the first # settimeofday() invocation from userspace is special and may be used # to set the offset from UTC of the system clock. It is independent # of any specific RTC device. This is mostly a crufty hack to support @@ -30,4 +31,4 @@ StandardOutput=syslog # system time as part of kernel setup. [Install] -WantedBy=basic.target +WantedBy=sysinit.target