[Pkg-utopia-maintainers] Bug#459473: dbus: Slightly wrong LSB header in init.d script
Petter Reinholdtsen
pere at hungry.com
Sun Jan 6 19:26:23 UTC 2008
Package: dbus
Version: 0.50-2
Tags: patch
User: initscripts-ng-devel at lists.alioth.debian.org
Usertags: incorrect-dependency
When testing dependency based boot sequencing, I discovered what I
believe is a bug in the init.d/dbus script. It need a mounted /usr/,
but do not depend on $remote_fs which is the dependency required for
scripts needing /usr/. It only depend on $local_fs, which do not give
this guarantee Also, it list S as one of the stop runlevels, but no
script should ever stop in the boot "runlevel".
This patch should solve the issue.
diff -ur dbus-1.1.2.orig/debian/dbus.init dbus-1.1.2/debian/dbus.init
--- dbus-1.1.2.orig/debian/dbus.init 2008-01-06 20:20:21.000000000 +0100
+++ dbus-1.1.2/debian/dbus.init 2008-01-06 20:22:00.000000000 +0100
@@ -1,10 +1,10 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: dbus
-# Required-Start: $local_fs $syslog
-# Required-Stop: $local_fs $syslog
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
-# Default-Stop: S 0 1 6
+# Default-Stop: 0 1 6
# Short-Description: D-Bus systemwide message bus
# Description: D-Bus is a simple interprocess messaging system, used
# for sending messages between applications.
As the stop script do not seem to do anything except killing the
daemon, that task might be better left to the sendsigs script in
runlevel 0 and 6. If this is indeed the case, I recommend removing 0
and 6 from the Default-Stop list.
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-utopia-maintainers
mailing list