Re: [chrony-users] Adding intentional offset with chronyd |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
Maybe if you tell us why you are trying to do that we could give you a better
solution than what you are trying. (The offset command tells chrony to read
the timestamps from the server as though they were out by 40 sec, not send
those)
If you do
chronyc
it will tell you the version
tunnel:0[unruh]>chronyc
chrony version 3.4
Copyright (C) 1997-2003, 2007, 2009-2018 Richard P. Curnow and others
chrony comes with ABSOLUTELY NO WARRANTY. This is free software, and
you are welcome to redistribute it under certain conditions. See the
GNU General Public License version 2 for details.
Also why do you not show us exactly what the command is that you have in
chrony.conf and also what the error message is.
William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology |____ unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1 ____|____ and Gravity ______|_ www.theory.physics.ubc.ca/
On Sun, 19 Jul 2020, John Munoz wrote:
I’m trying to use chronyd in a broadcast environment and need to setup an NTP server that is 40 seconds ahead of realtime.
I tried editing /etc/chrony.conf and adding
offset 40.0
But when I went to relaunch I got an error on the line I added.
Jul 19 11:54:40 systemd[1]: Stopped NTP client/server.
Jul 19 11:54:40 systemd[1]: Starting NTP client/server...
Jul 19 11:54:40 chronyd[52990]: Invalid command at line 42 in file /etc/chrony.conf
Jul 19 11:54:40 systemd[1]: chronyd.service: Control process exited, code=exited status=1
Jul 19 11:54:40 systemd[1]: chronyd.service: Failed with result 'exit-code'.
Jul 19 11:54:40 systemd[1]: Failed to start NTP client/server.
I read somewhere that the offset command only works in new versions but I couldn’t find a command to tell me what version I’m running and yum update chrony returns “nothing to do”
Is what I’m trying to accomplish even possible? I can’t figure out what I’m doing wrong.
--
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.