[avahi] Avahi dnsconfd (and a bit about running avahi)
Lennart Poettering
mzzhgg at 0pointer.de
Mon Jul 18 21:01:55 EST 2005
On Sun, 17.07.05 21:08, Steev (steev at steev.net) wrote:
> Sure - first off, this is ifconfig output before starting avahi-daemon
>
> mebius ~ # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:40:D0:33:FD:E1
> inet addr:169.254.228.10 Bcast:169.254.255.255 Mask:255.255.0.0
> inet6 addr: fe80::240:d0ff:fe33:fde1/64 Scope:Link
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Interrupt:11 Base address:0x2000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:131 errors:0 dropped:0 overruns:0 frame:0
> TX packets:131 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:7608 (7.4 Kb) TX bytes:7608 (7.4 Kb)
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:63.25.159.117 P-t-P:63.3.5.129 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:1179 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1334 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:621933 (607.3 Kb) TX bytes:139187 (135.9 Kb)
>
> Apache2 and sshd are running. I have 2 files - one called sshd.service
> and one called apache.service that follow the example.service file.
>
> mebius ~ # avahi-daemon
> Found user 'avahi' (UID 409) and group 'avahi' (GID 409).
> Successfully dropped root privileges.
> Enumeration complete
> Server startup complete. Host name is <mebius.local.>
> iface.c: avahi_server_add_service() failed.
> Loading service file /etc/avahi/services/apache.service
> Loading service file /etc/avahi/services/sshd.service
> ** Message: dbus: interface=org.freedesktop.DBus,
> path=/org/freedesktop/DBus, member=NameAcquired
> ** Message: dbus: ServiceAcquired (:1.6)
> ** Message: dbus: interface=org.freedesktop.DBus,
> path=/org/freedesktop/DBus, member=NameAcquired
> ** Message: dbus: ServiceAcquired (org.freedesktop.Avahi)
>
It seems that "RUNNING" is not set for the eth0 device.
Please disable "use-iff-running" in your avahi-daemon.conf. This
should fix the problem. Most (but unfortunately not all) network
drivers use this bit to tell userspace in an hardware independent
manor the status of the ethernet link beat.
i.e. if you set "use-iff-running" to "yes" you'll have link beat
checking in avahi, it will automatically detect when you plug in or
unplug the network cable. Some drivers never set this bit (like yours
as it seems) so avahi will never make use of the interface.
I've changed the default setting of this variable to "no" now. This
way avahi should work out-of-the-box on most systems, though link
beat detection is lost.
avahi-discover never enabled that variable.
The avahi_server_add_service() error remains still to be fixed.
Lennart
--
name { Lennart Poettering } loc { Hamburg - Germany }
mail { mzft (at) 0pointer (dot) de } gpg { 1A015CC4 }
www { http://0pointer.de/lennart/ } icq# { 11060553 }
More information about the avahi
mailing list