All of lore.kernel.org
 help / color / mirror / Atom feed
* autofs5 early daemonization side effects
@ 2009-03-18 14:10 Leonardo Chiquitto
  2009-03-18 14:27 ` michael
  2009-03-18 14:32 ` Jeff Moyer
  0 siblings, 2 replies; 6+ messages in thread
From: Leonardo Chiquitto @ 2009-03-18 14:10 UTC (permalink / raw)
  To: autofs

Hello,

I've been doing some tests with AutoFS5 and I'd like to confirm that
the behavior I'm seeing during the daemon initialization is expected
or not.

The problem: when the autofs initscript returns, autofs is not really
ready.

Reading the code, I see that the automount daemon detaches itself from
the controlling terminal (becoming a daemon) early in its initialization.
After that, it starts other threads to handle different tasks and just then
reads the available maps. Normally, reading the maps is quick, but it
could take a bit more if using NIS or LDAP, what explains the delay
between the initscript returning (immediately after daemonization) and
autofs being really ready to proceed.

I was thinking about some options to work around this problem (like deferring
daemonization), but after a while, I couldn't find a clean and non-intrusive
solution. Can you help me here?

Thanks,
Leonardo

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-23 20:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-18 14:10 autofs5 early daemonization side effects Leonardo Chiquitto
2009-03-18 14:27 ` michael
2009-03-18 14:32 ` Jeff Moyer
2009-03-18 15:59   ` Ian Kent
2009-03-18 20:39     ` Leonardo Chiquitto
2009-03-23 20:42       ` michael

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.