Re: [maemo-developers] avahi port

2007-02-07 Thread Priit Laes
Ühel kenal päeval, T, 2007-02-06 kell 17:33, kirjutas Andrew Barr:
 The Debian 'sid' init script does this:
 
 dbus-send --print-reply --system --type=method_call
 --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
 
 However the one on the N800 just stops and starts the daemon, waiting
 one second in between. Running the above command on the device seems
 to work so I'll just put that in the avahi-daemon.postinst script.

Where can I download the test package? :)

Cheers,
Priit ;)

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] avahi port

2007-02-06 Thread Andrew J. Barr
Hello,

As I mentioned previously, I am porting avahi to the N800 and later the
770. I have packages built, but there is a small problem that prevents
them from working--when they are configured by dpkg they cause a
lifeguard reset. My working theory is this is caused by this command
issued by the postinst script for avahi-daemon:

invoke-rc.d dbus force-reload || true

What is the proper way to reload the DBUS configuration from a package?
Just using 'reload'?

Additionally, it seems avahi is not started on bootup :( I don't know if
this is because the configure script doesn't get to finish hence it is
not added to any runlevels, or if there is something special I need to
do on Maemo to get init scripts added to bootup.

However, once it is installed and manually started it does work. So
pinging Nokia-N800-51.local from a LAN machine works fine :)

Any help is greatly appreciated.

Regards,
Andrew Barr
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] avahi port

2007-02-06 Thread Kimmo Hämäläinen
On Tue, 2007-02-06 at 09:47 -0500, ext Andrew J. Barr wrote:
 Hello,
 
 As I mentioned previously, I am porting avahi to the N800 and later the
 770. I have packages built, but there is a small problem that prevents
 them from working--when they are configured by dpkg they cause a
 lifeguard reset. My working theory is this is caused by this command
 issued by the postinst script for avahi-daemon:
 
 invoke-rc.d dbus force-reload || true

I think this caused lifeguard reset because D-Bus clients did not cope
with restarting of the D-Bus daemon. You could workaround this by
disabling the lifeguard reset temporarily (flasher --enable-rd-mode --
set-rd-flags=no-lifeguard-reset), but anyway you need to reboot
afterwards to get the D-Bus clients connected again.

 What is the proper way to reload the DBUS configuration from a package?
 Just using 'reload'?

I'm not sure if D-Bus daemon currently supports reloading of the
configuration on-the-fly. So, restarting (reboot) might be the only
option.

 Additionally, it seems avahi is not started on bootup :( I don't know if
 this is because the configure script doesn't get to finish hence it is
 not added to any runlevels, or if there is something special I need to
 do on Maemo to get init scripts added to bootup.

It's wise to disable the lifeguard reset before installing experimental
stuff.

BR; Kimmo

 
 However, once it is installed and manually started it does work. So
 pinging Nokia-N800-51.local from a LAN machine works fine :)
 
 Any help is greatly appreciated.
 
 Regards,
 Andrew Barr
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://maemo.org/mailman/listinfo/maemo-developers
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers