Markus Schoder wrote: > On Wednesday 02 May 2007, Michael Biebl wrote: >> Markus Schoder wrote: >>> Package: avahi-daemon >>> Version: 0.6.18-4 >>> >>> I have disabled the avahi-daemon via /etc/default/avahi-daemon. >>> >>> On shutdown the init script gives me an error message that the >>> shutdown failed even though the daemon is not running at all. >>> >>> Please consider the following patch to shut up the init script in >>> that case: >> My suggestion would be, to not disable the init script via >> /etc/default/avahi-daemon, but by removing the stop/start links from >> the runlevels. This is now possible, as avahi-daemon has become a >> SysV init script. >> Install a tool like sysv-rc-conf (or if you like a GUI, choose bum) >> and run "sysv-rc-conf avahi-daemon off". >> >> This disables avahi-daemon the *right* way. > > /etc# sysv-rc-conf avahi-daemon off > /etc# ls rc?.d/*avahi* > rc0.d/K16avahi-daemon rc1.d/K16avahi-daemon rc2.d/K16avahi-daemon > rc3.d/K16avahi-daemon rc4.d/K16avahi-daemon rc5.d/K16avahi-daemon > rc6.d/K16avahi-daemon > > Looks like it will still try to stop the avahi-daemon on shutdown.
No, it won't. Just try for yourself if you don't believe me ;-) (hint: read /etc/init.d/rc, line 244ff) In short: When you switch from one runlevel to another (say 2 -> 0), /etc/init.d/rc won't run kill scripts if they already exist in the previous runlevel. > Of course I can fix it the "traditional" way > > /etc# rm rc?.d/*avahi-daemon* That is actually not a good approach, because on every package upgrade, the symlinks are recreated. For more info read the update-rc.d manpage. > Anyway I think the behaviour is odd to give a failed message when trying > to stop a daemon that is not running but YMMV. The problem is, that the expected behaviour is not defined by the policy > -- > Markus > > PS: "become" heisst übrigens "werden" ;) Huh? I know that of course. I was referring to the avahi daemon start script: ... the avahi-daemon (dbus start script /etc/dbus-1/event.d/25avahi-daemon) has become a SysV init script... Make that a "has been changed into" if you prefer. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature