Bug#421928: [Pkg-utopia-maintainers] Bug#421928: /etc/init.d/avahi-daemon outputs "Failed" on shutdown if not running

Markus Schoder lists at gammarayburst.de
Wed May 2 20:57:49 UTC 2007


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.

Of course I can fix it the "traditional" way

/etc# rm rc?.d/*avahi-daemon*

Anyway I think the behaviour is odd to give a failed message when trying 
to stop a daemon that is not running but YMMV.

--
Markus

PS: "become" heisst übrigens "werden" ;)




More information about the Pkg-utopia-maintainers mailing list