Remove avahi-daemon from runlevels 0-6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
avahi (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
avahi-daemon is currently stopped in runlevels 0 and 6. Is this necessary? It doesn't seem to do anything much of note on SIGTERM; as far as I can see it doesn't need to write out any persistent state to disk or anything like that. We established a while back in Ubuntu that only services which need careful shutdown procedures need to have their init scripts run in runlevels 0 or 6, while everything else should be handled by the SIGTERM/
If my assessment is accurate, then please adjust avahi-daemon's update-rc.d invocation to remove it from runlevels 0 and 6. Note that you'll need explicit migration code in the postinst to remove the old rc[06].d symlinks on upgrade, e.g.:
# Remove shutdown and reboot links; this init script does not need them.
if dpkg --compare-versions "$2" lt WHATEVER_
rm -f /etc/rc0.
fi
summary: |
- unnecessarily stopped in runlevels 0/6? + Remove avahi-daemon from runlevels 0-6 |
Changed in avahi (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
(While I agree that this is a minor point, fixing this consistently across the board makes a difference to shutdown speed. See https:/ /wiki.ubuntu. com/Teardown.)