Re: [chrony-users] Starting Chronyd as online

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Mon, 2 Jul 2012, Paul Menzel wrote:

Dear Bill,


I am sorry for not being clear.


Am Sonntag, den 01.07.2012, 22:55 -0700 schrieb Bill Unruh:
On Mon, 2 Jul 2012, Paul Menzel wrote:

is there a way to start Chronyd as online with an option?

This would be helpful to simplify init.d scripts or service files not
having to read the password from the key file and pass some commands to
Chronyc.

No idea what you mean of why having chronyd "online" ( O assume not detached
as a daemon) would help. You would still need to run chronyc to pass commands
to the running daemon, and would have to read the password file to send
certain commands. And how it would simplify init.d scripts I have no idea.
Perhaps if you told us the problem, rather than the solution, we could be more
helpful.

Currently starting Chronyd and executing `activity` in Chronyc all
sources (NTP servers) are listed as offline. The command `online` has to
be executed to get those online. I would like to start Chronyd, so that
all sources are online right away.

OK, it should not do that if your network is up and you have not told it to
put them all offline in /etc/chrony.conf.

a) check chrony.conf to see if it is telling chrony to put the sources
offline. If chrony.conf is doing that remove the offline keywords in
chorny.conf.

b) Is your network up when chrony comes up? If you have to have chrony start
before the network comes up, then you could put in an init.d script to restart
chronyd after the network is up




Thanks,

Paul


--
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/

--
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.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/