Jarek Kamiński wrote:
> On Wed, Jun 13, 2007 at 07:43:17PM +0200, Michael Biebl wrote:
> 
> I've just found this bug fixed and read its log.
> 
>> Antti-Juhani Kaijanaho wrote:
>>> On Wed, Jun 13, 2007 at 05:59:23PM +0200, Michael Biebl wrote:
>>>> How is NM supposed to know if dbus is started again? Should it poll 
>>>> forever in a
>>>> while loop checking for a dbus connection?
>>> I rather think that this is a problem for the NM and dbus maintainers to 
>>> solve,
>>> not me the bug reporter :)
>>>
>>> (I could do it, I already have several possible mechanisms in mind, but it
>> Don't be shy, just tell your ideas, because I don't have an elegant
>> solution for this.
> 
> How do kpowersave and knetworkmanager handle this situation? They both
> sit on panel during upgrade, detect dbus going down and reconnects, when
> it's started again.
> 
> Working network connection is still better than network connection going
> down for short time ;-)

Looks like NetworkManager does survive a dbus restart.

If you want, you can try the attached patch against /etc/init.d/dbus.
It skips services that are known to survive dbus restarts.
I'd be interested to know if it works for you.

Cheers,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/init.d/dbus b/init.d/dbus
index 1f9b20d..3eb671c 100755
--- a/init.d/dbus
+++ b/init.d/dbus
@@ -86,6 +86,9 @@ dependent_services()
   for i in $services ; do
     service=$(basename $i)
     service=${service#S??}
+    # skip services which can survive a dbus restart
+    [ "$service" = "powersaved" ] && continue;
+    [ "$service" = "network-manager" ] && continue;
     invoke-rc.d $service $action || true
   done
 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-utopia-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-utopia-maintainers

Reply via email to