File dbus-initscript.patch of Package dbus-mandriva2008
diff -p -up dbus-1.1.20/bus/messagebus.in.initscript dbus-1.1.20/bus/messagebus.in
--- dbus-1.1.20/bus/messagebus.in.initscript 2008-02-26 17:02:27.000000000 +0100
+++ dbus-1.1.20/bus/messagebus.in 2008-03-25 17:22:18.000000000 +0100
@@ -2,7 +2,7 @@
#
# messagebus: The D-BUS systemwide message bus
#
-# chkconfig: 345 97 03
+# chkconfig: 2345 53 66
# description: This is a daemon which broadcasts notifications of system events \
# and other messages. See http://www.freedesktop.org/software/dbus/
#
@@ -13,6 +13,7 @@
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
+# Should-Start: network-auth
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
@@ -40,6 +41,10 @@ start() {
daemon --check $servicename $processname --system
RETVAL=$?
+ countdown=10
+ until [ -e @DBUS_SYSTEM_SOCKET@ -o $countdown -eq 0 ]; do
+ sleep 1; let countdown=$countdown-1;
+ done
echo
[ $RETVAL -eq 0 ] && touch @EXPANDED_LOCALSTATEDIR@/lock/subsys/$servicename
}