Upgrade of avahi-daemon restarts it although it's desactivated
Bug #218586 reported by
Kelson
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
at (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
avahi (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
cupsys (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
gnome-system-tools (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
sysklogd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
sysvinit (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have Gutsy.
The avahi-daemon generates problems with name resolution by me, so I have deactivated it with the system >admin > service dialog box.
This morning was an update of the avahi-daemon (0.6.20-2ubuntu3) which seems to have reactivated it silently because my problem have reappeared.
The system >admin > service dialog box showed a desactivated (check out) service... but check in and again and again check out and press the OK button has resolved the problem.
I have had to do that this morning on two ubuntu Gutsy computers.
Changed in avahi: | |
status: | New → Invalid |
Changed in cupsys: | |
status: | New → Invalid |
Changed in sysvinit: | |
status: | New → Invalid |
Changed in sysklogd: | |
status: | New → Invalid |
Changed in at: | |
status: | New → Invalid |
To post a comment you must log in.
confirmed: ubuntu 7.10, ubuntu-desktop dpkg/info/ *postinst
confirmed: ubuntu 8.04, ubuntu-desktop and xubuntu-desktop
for a list of possibly affected services,
grep -e "invoke-rc.d" /var/lib/
Every upgrade or reinstall of an affected service triggers this bug, if the service was disabled with services-admin application.
The services' postinst maintainer script runs invoke-rc.d, which in turn starts the service if the service link in the current runlevel is missing (deleted by services-admin).
Reproduced this way: d/*avahi- daemon d/S18avahi- daemon Administration> Services: "disable" avahi-daemon d/*avahi- daemon d/*avahi- daemon: No such file or directory
# terminal
user@ubuntu:~$ runlevel
N 2
user@ubuntu:~$ ls /etc/rc2.
/etc/rc2.
# menu System>
user@ubuntu:~$ ls /etc/rc2.
ls: /etc/rc2.
user@ubuntu:~$ ps ax | grep avahi
9666 pts/1 S+ 0:00 grep avahi
user@ubuntu:~$ sudo invoke-rc.d avahi-daemon start
[sudo] password for user:
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
user@ubuntu:~$ ps ax | grep avahi
9699 ? Ss 0:00 avahi-daemon: registering [ubuntu.local]
9700 ? Ss 0:00 avahi-daemon: chroot helper
9707 pts/1 R+ 0:00 grep avahi
This bug only shows up with deleted links.
It is not restricted to avahi-daemon.
Reproduced with atd, avahi-daemon, cupsys, sysklogd (others not tested).
invoke-rc.d acts as expected (does not start the service) if the service was correctly disabled (link renamed to Knn...).
This can be done using an undocumented feature of services-admin:
Right-click on the service, in the advanced settings select "stop".
Do not select "ignore" here: the services' link will then be deleted and cause this bug to happen again on next upgrade or reinstall.
One of invoke-rc.d (package sysv-rc) and services-admin (package gnome-system-tools) is clearly misbehaving here. I vote for services-admin, because of its persistent habit of deleting and mixing up links - see bug #19034 for some historical evidence.