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

Re: /etc/rc?.d/*



Russell Coker <russell@coker.com.au> wrote:

> Currently we start and stop the scripts in rc?.d directories in
> alphabetical order (IE the numerical order of whatever follows the
> 'K' or 'S' in the file name).

> The update-rc.d wants to install packages with the same numbers for
> start and stop.

> What I want to do is have a script start before the rest and stop
> after them.

> What's the recommended way of doing so?

If I understand update-rc.d(8), this should be done by:
 update-rc.d foo defaults 01 99

This will start your script foo with the sequence number 01 (one of
the first scripts) and it will be stopped with sequence number 99 (one
of the last scripts).

Tschoeeee

        Roland

-- 
 * roland@spinnaker.de * http://www.spinnaker.de/ *


Reply to: