[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: faster boot

On Tue, 2003-10-21 at 02:44, Russell Coker wrote:
> Surely if a daemon takes a long time before it detaches from it's terminal and 
> "goes daemon", then you can have a parent process put it in the background 
> and direct it's output to some convenient log file.

System V initscripts must not return until the services they start
are ready to use.  Otherwise running initscript Y after initscript
X from /etc/rc?.d/ doesn't guarantee that Y can make use of X.
Providing such guarantees is the whole point of the system.  (Or
have I somehow missed your point?)

If you are going to try to speed up boot by relaxing the rule
that services are started one at a time then you have to do this
in such a way that the interdependencies of services are still
satisfied.  You have a choice between (1) adding "needs"/"provides"
information to the system so that it knows which pairs of initscripts
to serialize, and (2) changing initscripts so that they are able to
wait until prerequisite services have become available.  There are
other possibilities, too ...

Thomas Hood <jdthood@yahoo.co.uk>

Reply to: