diff options
author | Peter A. Bigot <pab@pabigot.com> | 2018-04-30 07:05:29 -0500 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-04-08 14:34:05 +0200 |
commit | 4ea0f675aef5996ccdb97adc9700564d18f95901 (patch) | |
tree | 7961faa2b985bb07cf472f960bc1778b10348f2b /units/systemd-timesyncd.service.in | |
parent | 82d0776da258eaf2c619f4c58236c22c468c346e (diff) | |
download | systemd-4ea0f675aef5996ccdb97adc9700564d18f95901.tar.gz |
units: add time-set.target
time-sync.target is supposed to indicate system clock is synchronized
with a remote clock, but as used through 241 it only provided a system
clock that was updated based on a locally-maintained timestamp. Systems
that are powered off for extended periods would not come up with
accurate time.
Retain the existing behavior using a new time-set.target leaving
time-sync.target for cases where accuracy is required.
Closes #8861
Diffstat (limited to 'units/systemd-timesyncd.service.in')
-rw-r--r-- | units/systemd-timesyncd.service.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in index 6512531e1c..2d8d14f6de 100644 --- a/units/systemd-timesyncd.service.in +++ b/units/systemd-timesyncd.service.in @@ -14,9 +14,9 @@ ConditionCapability=CAP_SYS_TIME ConditionVirtualization=!container DefaultDependencies=no After=systemd-remount-fs.service systemd-sysusers.service -Before=time-sync.target sysinit.target shutdown.target +Before=time-set.target sysinit.target shutdown.target Conflicts=shutdown.target -Wants=time-sync.target +Wants=time-set.target time-sync.target [Service] AmbientCapabilities=CAP_SYS_TIME |