[Pkg-utopia-maintainers] Bug#530395: Bug#530395: dbus: startscript does what insserv should do

Michael Biebl biebl at debian.org
Mon May 25 07:21:49 UTC 2009


retitle 530395 dbus init script should make reimplement a dependency based init
thanks

Ralph Ulrich wrote:
> Package: dbus
> Version: 1.2.14-2
> Severity: minor
> 
> 
> This is ugly:
> 
> Every start of "/etc/init.d/dbus" does:
> ---
>      services=$(grep -s -l "^# Required-Start:.*dbus" /etc/rc${r}.d/S??*
> .
> .
> .
>   for i in $services ; do
>      service=$(basename $i)
>      service=${service#S??}
>      invoke-rc.d $service $action || true
>    done
> ---
> 
> what is exactly what insserv does! If we want a fast boot we should not 

No it isn't really.
insserv can only statically calculate start up priorities upon installation. It
doesn't handle dependencies during runtime, which is what we need here.
We want to restart all services dependending on D-Bus whenever dbus-daemon is
restarted. That is not doable within insserv (or our sysv-rc for that matter).

The only real solution whould be to switch to a really dynamic, dependency based
system or an event based one, like upstart.

Until that happens, there is unfortunately no better solution.

Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20090525/0f2ac5eb/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list