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

Re: Paralell startup



On Thu, 2004-10-21 at 19:09 -0500, Derek P. Moore wrote:
> > Migration path: How do you handle the scripts that haven't been updated? 
> 
> The old init scripts would have the old chkconfig line in them.
> 
> Currently, with ordered startup and shutdown, initscripts have something
> similar to the following embedded within them:
> 
> # chkconfig: - 60 20
> 
> And the initscript's runlevel symlinks are along the lines of:
> 
> /etc/rc.d/rc3.d/S60nfs  (for startup)
> /etc/rc.d/rc3.d/K20nfs  (for shutdown)
> 
> If a dependency handling framework were added to Fedora's rc scripts, I
> imagine that would require a new sort of 'chkconfig' line for the newer
> initscripts.  That newer embedded hint would contain the dependency
> information for system tools (like chkconfig) and for the boot scripts
> to build the order at runtime.
> 
> I also suppose runlevel symlinks for the newer initscripts could be
> along the lines of:
> 
> /etc/rc.d/rc3.d/Snfs
> /etc/rc.d/rc3.d/Knfs
> 
> > Lump them all at the end in traditional serial order?
> 
> Yeah...  /etc/rc.d/rc could go through S[[:alpha:]]*, parse out each
> file's new chkconfig hints, build the order, and run the parallel
> startup.  When that's done, if there are any S[[:digit:]]*, execute
> those as according to trandition.  Same goes for shutdown (although I
> suppose ordered services should be shutdown first, then paralleled
> services shutdown after).
> 

Like I said previously, you don't need to run a traditional (serial)
startup process after the parallel startup to catch third party scripts
lacking the dependencies info, you only need to generate the new
dependencies info from current "chkconfig" info for each third-party
script. 

For example:
# /etc/init.d/somescript
# chkconfig: - 60 20

the dependencies for "somescript" are all the scripts that would
preceded "somescript" in the traditional serial startup.

> Sounds simple enough really.
> 
> Peace out,
> 
> Derek
> 
Regards,
-- 
Ricardo Veguilla <veguilla hpcf upr edu>


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