Re: [chrony-users] Delays before daemonizing

2015-12-01 Thread Holger Hoffstätte

...and of course I get to answer my own question. :)

> I haven't looked at the source yet, but it seems to me that loading and
> verifiying the configuration should not take several seconds before
> forking and returning. I don't have a ton of sources (2), they are all
> inhouse, healthy, reachable and DNS resolvable etc. So..any ideas?

So this turned out to be my use of initstepslew with two sources, which of
course must block before returning. Without it chronyd forks immediately
(unless the configuration has an error), just as expected.

Thanks! :)

-h


-- 
To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org 
with "unsubscribe" in the subject.
For help email chrony-users-requ...@chrony.tuxfamily.org 
with "help" in the subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.



Re: [chrony-users] Delays before daemonizing

2015-12-01 Thread Miroslav Lichvar
On Tue, Dec 01, 2015 at 12:00:51PM +0100, Holger Hoffstätte wrote:
> I haven't looked at the source yet, but it seems to me that loading and
> verifiying the configuration should not take several seconds before
> forking and returning. I don't have a ton of sources (2), they are all
> inhouse, healthy, reachable and DNS resolvable etc. So..any ideas?

Two things that by design delay the exit of the foreground process are
the -s option and the initstepslew directive. As you pointed out in
the bug this is useful to delay start of services that require the
system clock to be reasonably good from the moment they are started. A
different approach to wait until the clock is synchronized is to add a
separate chrony-wait service that just runs "chronyc waitsync".

Resolving of hostnames specified in the server/pool/peer directives
shouldn't add any delay, but hostnames in the allow/deny directives
do that.

Do you have allow/deny with a hostname in your config? 

If the cause is something else, it's probably a bug that should be
fixed.

-- 
Miroslav Lichvar

-- 
To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org 
with "unsubscribe" in the subject.
For help email chrony-users-requ...@chrony.tuxfamily.org 
with "help" in the subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.