[chrony-users] Best way to force clock step at shutdown |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] Best way to force clock step at shutdown
- From: Hector Oron <hector.oron@xxxxxxxxx>
- Date: Tue, 12 Jan 2016 11:58:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=mZ0ognWcqcwokqlWuZ7OrdLLFfMg7l/N8Paz6ukIy1Y=; b=IkUJD3xI3hK8oxcd+yxGdUc9H5A7JzLidQDPfPtU2LnMGwAyduC+PHzJnXlQLETiuQ WBedJJKugF5zxCZ+VvI4A7JEmSPaAFbd623KnpJLHw3KM2WPZwjDx8wjPpQKM9eyL45o JhLSRZuDrQI1JabPp64GL+8XLB3EPs5OTkS1HyabRsLl1Rjhf16RBLTYFxxvQBcK2U7M HRvCBHCy9URZ/JuuwjiTgFhPATHX8CwPjq+r7u9H9hgFcvY0nF+Mr8qAKKbhJzBMjqIQ vt33/Mz3+aOBHJKioCk+oUPBGCIexDvzxaR1fXC0lQcuPRLTbAr+B048nynHKt7S7uW6 ZdsA==
Hello,
As I read on an old post here:
http://listengine.tuxfamily.org/chrony.tuxfamily.org/chrony-users/2014/10/msg00004.html
The recommended way to be able to force a sync is to generate a
burst and wait 10 sec for measurements to complete, then do the
stepping on the clock.
My requirements need to sync time only at shutdown, but time cannot
change during machine activity, if I do the burst, sleep, makestep at
shutdown it works, but I would prefer to not have to wait.
What I am planning to do is to have a systemd unit file that
triggers the burst at machine startup, then does the makestep at
shutdown, that way I believe clock should only step at shutdown
correctly without modifying time during machine activity.
I would like to know if that's best recommended way to do that or if
there are other alternatives I could use.
Best regards
--
Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . ..-.
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.