Michal Čihař wrote: > Package: dbus > Version: 1.0.2-4 > Severity: normal > > Hi > > current init script of dbus wrongly assumes that user have to use > sysv-rc. This fails with file-rc because there is nothing like > /etc/rc${r}.d/S??*: >
Hi Michal, could you please test and review the attached patch (against /etc/init.d/dbus) and tell me if it works for you. Add the following stanza to some of you init scripts ### BEGIN INIT INFO # Required-Start: dbus ### END INIT INFO and check if "/etc/init.d/dbus restart" stops and starts them in the correct order. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Index: dbus =================================================================== --- dbus.orig (Revision 1421) +++ dbus (Arbeitskopie) @@ -67,7 +67,15 @@ fi # Get the list of services active in this runlevel - services=$(grep -l "^# Required-Start:.*dbus" /etc/rc${r}.d/S??* | sort $param) + if [ -d /etc/rc${r}.d/ ] ; then # sysv-rc + services=$(grep -l "^# Required-Start:.*dbus" /etc/rc${r}.d/S??* | sort $param) + elif [ -f /etc/runlevel.conf ] ; then # file-rc + list=$(grep -l "^# Required-Start:.*dbus" /etc/init.d/*) + services=$( for i in $list ; do + grep -E "^[[:digit:]]{2}[[:space:]]+[0-9,-S]+[[:space:]]+.*${r}.*[[:space:]]+${i}$" /etc/runlevel.conf + done | sort $param | cut -f5 ) + fi + # Start the services in the correct order for i in $services ; do
signature.asc
Description: OpenPGP digital signature