/etc/network/if-post-down.d/avahi-daemon is a symbolic link to `../if-up.d/avahi-daemon'

Bug #1230056 reported by Serhiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
avahi (Ubuntu)
New
Undecided
Unassigned

Bug Description

With current situation avahi-daemon starts when it needs to stop, causing ifdown to wait additional 10 seconds during shutdown. Please remove the
/etc/network/if-post-down.d/avahi-daemon link from the package.

Quick workaround:
$ sudo rm /etc/network/if-post-down.d/avahi-daemon

Revision history for this message
Steve Langasek (vorlon) wrote :

This command returns only once all of the jobs that are marked 'stop on unmounted-remote-filesystems' have a chance to stop. Do you know what jobs on your system are affected by this? Normally it will return quite quickly. Unless you're using NFS, it's possible that /etc/init/networking.conf is the slow-down; it does quite a few checks before stopping, but these shouldn't have any effect unless you have network block devices.

Changed in sysvinit (Ubuntu):
status: New → Incomplete
Revision history for this message
Serhiy (xintx-ua) wrote :

No, I don't use NFS. Anything else I can add?

Revision history for this message
Steve Langasek (vorlon) wrote :

What does /var/log/upstart/networking.log contain after reboot?

Revision history for this message
Serhiy (xintx-ua) wrote :

It just doesn't exist. I have this:

$ grep log /etc/fstab
tmpfs /var/log tmpfs defaults 0 0

I'll try commenting it.

Revision history for this message
Serhiy (xintx-ua) wrote :

I've added an echo line to the very beginning of /etc/init/networking.conf:post-stop script and I don't see it in these 10 seconds.

Revision history for this message
Steve Langasek (vorlon) wrote :

The echo wouldn't output to the screen, it would be logged to /var/log/upstart/networking.log. Anything there?

Revision history for this message
Steve Langasek (vorlon) wrote :

And if you manually run 'sudo service networking stop' from a running system, how long does that take to return?

Revision history for this message
Serhiy (xintx-ua) wrote :

sudo service networking stop took less than a second, the echos are in the /var/log/upstart/networking.log

Revision history for this message
Steve Langasek (vorlon) wrote :

Ok. I don't have any further theories at the moment as to what might be causing this. Setting the bug back to 'new' for now.

Changed in sysvinit (Ubuntu):
status: Incomplete → New
Serhiy (xintx-ua)
summary: - initctl waiting for 10 seconds before finishing in
- /etc/init.d/umountnfs.sh
+ initctl -> ifdown waiting for 10 seconds before finishing in
+ /etc/init/networking.conf during shutdown
summary: - initctl -> ifdown waiting for 10 seconds before finishing in
+ ifdown waiting for 10 seconds before finishing in
/etc/init/networking.conf during shutdown
Revision history for this message
Serhiy (xintx-ua) wrote :

It's something from avahi-daemon.
apt-get purge avahi-daemon solves the issue and reinstalling it makes it appear again.

no longer affects: sysvinit (Ubuntu)
no longer affects: upstart (Ubuntu)
Revision history for this message
Serhiy (xintx-ua) wrote :

/etc/network/if-post-down.d$ file avahi-daemon
avahi-daemon: symbolic link to `../if-up.d/avahi-daemon'

no longer affects: ifupdown (Ubuntu)
Revision history for this message
Serhiy (xintx-ua) wrote :

avahi-daemon 0.6.31-1ubuntu3

Revision history for this message
Serhiy (xintx-ua) wrote :

$ sudo rm /etc/network/if-post-down.d/avahi-daemon
fixes the problem.

summary: - ifdown waiting for 10 seconds before finishing in
- /etc/init/networking.conf during shutdown
+ /etc/network/if-post-down.d/avahi-daemon is a symbolic link to `../if-
+ up.d/avahi-daemon'
Serhiy (xintx-ua)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.