2011-06-24 14:26:26 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Wait for chrony to synchronize system clock
|
|
|
|
After=chronyd.service
|
|
|
|
Requires=chronyd.service
|
|
|
|
Before=time-sync.target
|
|
|
|
Wants=time-sync.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
# Wait up to ~10 minutes for chronyd to synchronize and the remaining
|
|
|
|
# clock correction to be less than 0.1 seconds
|
|
|
|
ExecStart=/usr/bin/chronyc waitsync 60 0.1
|
|
|
|
RemainAfterExit=yes
|
2012-09-11 17:45:58 +00:00
|
|
|
StandardOutput=null
|
2011-06-24 14:26:26 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|