[Pkg-sysvinit-devel] Bug#714039: Bug#714039: initscripts: Require-Start problem

Petter Reinholdtsen pere at hungry.com
Wed Jul 17 14:13:53 UTC 2013


[heroxbd]
> Dear Petter,

Hi. :)

> In OpenRC we developped a method globbing /etc/init.d/* to construct
> $all, which results in /etc/init.d/README to be pulled in. A strong
> dependence will fail if README is not a init script, while a weak one
> will not.

This seem to be the wrong approach to handle $all, at least the way I
understand $all.  $all is the set of enabled init.d scripts except those
that depend on $all, not every file in /etc/init.d/.

The approach you have selected will fail with scripts having a
dependency graph like this

  foo <- $all <- bar <- baz

foo do not depend on $all, while bar do, and baz depend on bar.  Note
that insserv also give a strange ordering on this setup, as $all is
taken to mean order script at current end sequence number +1, and
dependencies for scripts depending on scripts depending on $all are
really ignored.

So the dependency ordering listed above will with insserv end up with

 S01foo
 S03baz
 S04bar

Note that the sequence number 02 that bar would have used if it wasn't
for the $all dependency is empty.  It is the reason why I recommend not
using the $all dependency at all.  I assume systemd and upstart handle
$all differently... :)

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list