[Pkg-utopia-maintainers] Bug#734721: [avahi-dnsconfd] fails to start at boot

Maurizio Avogadro mavoga at gmail.com
Thu Jan 9 12:09:38 UTC 2014


Package: avahi-dnsconfd
Version: 0.6.31-4
Severity: normal


The avahi-dnsconfd daemon failed to start at boot; in the daemon.log I
found:

[...]
Jan  8 17:28:41 w150hrm avahi-dnsconfd[3997]: connect(): No such file or
directory
Jan  8 17:28:41 w150hrm avahi-dnsconfd[3997]: Failed to connect to the
daemon. This probably means that you
Jan  8 17:28:41 w150hrm avahi-dnsconfd[3997]: didn't start avahi-daemon
before avahi-dnsconfd.
[...]

The output of $ ls -1 /etc/rc?.d/*avahi* is:

/etc/rc0.d/K01avahi-dnsconfd
/etc/rc0.d/K03avahi-daemon
/etc/rc1.d/K01avahi-dnsconfd
/etc/rc1.d/K03avahi-daemon
/etc/rc2.d/S20avahi-daemon
/etc/rc2.d/S22avahi-dnsconfd
/etc/rc3.d/S20avahi-daemon
/etc/rc3.d/S22avahi-dnsconfd
/etc/rc4.d/S20avahi-daemon
/etc/rc4.d/S22avahi-dnsconfd
/etc/rc5.d/S20avahi-daemon
/etc/rc5.d/S22avahi-dnsconfd
/etc/rc6.d/K01avahi-dnsconfd
/etc/rc6.d/K03avahi-daemon

Oddly enough, I verified that at boot avahi-dnsconfd got started
_before_ avahi-daemon, and I begun to suspect that the init system (I'm
using sysvinit 2.88dsf-45; please see the attached graphs of the boot
dependencies) were getting confused because of the multiple "Provides:"
LSB header field of the avahi-daemon init script:

[...]
### BEGIN INIT INFO
# Provides:          avahi avahi-daemon
[...]

The avahi-dnsconfd initscript currently requires "avahi-daemon":

[...]
### BEGIN INIT INFO
# Provides:          avahi-dnsconfd
# Required-Start:    $remote_fs avahi-daemon
# Required-Stop:     $remote_fs avahi-daemon
[...]

Making avahi-dnsconfd initscript require "avahi" instead of
"avahi-daemon" allowed me to correctly start the daemon _after_
avahi-daemon at boot.

Since the solution looked straight and simple, even if this could indeed
be considered a sysvinit issue, I chose to file this bug against
avahi-dnsconfd: please apologize if you feel I got wrong.


Thanks


Maurizio



--- System information. ---
Architecture: amd64
Kernel: Linux 3.12-1-amd64

Debian Release: jessie/sid
990 testing security.debian.org
990 testing ftp.de.debian.org
500 unstable ftp.de.debian.org
500 testing deb-multimedia.org
500 stable ftp.de.debian.org
110 unstable deb-multimedia.org
1 experimental ftp.de.debian.org

--- Package information. ---
Depends (Version) | Installed
======================================-+-===============
libavahi-common3 (>= 0.6.16) | 0.6.31-4
libc6 (>= 2.15) | 2.17-97
libdaemon0 (>= 0.10) | 0.14-2
init-system-helpers (>= 1.13~) | 1.14
avahi-daemon (>= 0.6.31-3~) | 0.6.31-4
lsb-base (>= 3.0-6) | 4.1+Debian12


Recommends (Version) | Installed
=========================-+-===========
resolvconf | 1.74


Package's Suggests field is empty.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: avahi_dnsconfd_requiring_avahi-daemon.dot
Type: application/msword
Size: 24659 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20140109/bf498bb4/attachment-0002.dot>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avahi_dnsconfd_requiring_avahi.dot
Type: application/msword
Size: 24652 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20140109/bf498bb4/attachment-0003.dot>


More information about the Pkg-utopia-maintainers mailing list