severity 327085 important
thanks

Hi Tim!

On Wed, 07 Sep 2005, Tim Phipps wrote:

> Package: file-rc
> Version: 0.8.7
> Severity: critical
> Justification: breaks the whole system

> The script /etc/init.d/rc does not use the sort field of
> /etc/runlevel.conf to select the order of execution of the init.d
> scripts.

That's true.  The lines in runlevel.conf are executed in the order of
the file.

Yes, it's a bug of the documentation of runlevel.conf, that it doesn't
mention that the numbers in the first column aren't evaluated but
simply discarded on execution of rc.  But update-rc.de places new
entries sorted by the ID column into runlevel.conf.

> The conversion script does sort the file in correct order but if the
> user twiddles with it things may get run in incorrect order (e.g.
> put networking at the end and see how many daemons fail to start).

This is an ugly situation, but I don't think that it justifies a
"critical" bug, because it's a human mistake (okay, based on a wrong
man page, which I will fix soon).  But if I edit a file, with
ascending IDs in the first column, I usually order them by hand before
saving the file.  I think that most people will do so, which explains
why nobody else found this problem in the documentation before.

> All you have to do is replace "xxx < $configfile" with "sort
> $configfile | xxx". Actually, you can't since sort is in /usr/bin,
> you'll have to do a sort with bash functions.

I don't have a sh function available for sorting at the moment and I'm
not sure whether I can accept the speed loss of such a function.

Tschoeeee

        Roland

-- 
 * [EMAIL PROTECTED] * http://www.spinnaker.de/ *


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to