[maemo-developers] [maemo-developers] avahi port

From: Andrew Barr andrew.james.barr at gmail.com
Date: Wed Feb 7 00:33:08 EET 2007
On 2/6/07, Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> wrote:
> 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.

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.

> > 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.

True, but at some point it would be nice if those who don't want to do
such a thing could use these packages. I would consider a package that
triggers a reset a buggy package, so I'm trying to fix it.

> 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 at maemo.org
> > https://maemo.org/mailman/listinfo/maemo-developers

More information about the maemo-developers mailing list