[avahi] [patch] SUSE initscript

Lennart Poettering mzzhgg at 0pointer.de
Fri Jul 1 16:31:18 PDT 2005


On Fri, 01.07.05 18:42, Joe Shaw (joeshaw at novell.com) wrote:

> On Sat, 2005-07-02 at 02:47 +0800, Trent Lloyd wrote:
> > Looks good other than avahi has its own internal machanism for handling
> > reloads and stops (You can see the debian init script for an example).
> > 
> > It would be preferable for the suse init script to use these.
> > 
> > Is there a problem with this in relation to suse or would having your
> > init script use these not be a problem?
> 
> It's mostly just by convention.  The startproc/killproc/checkproc save
> the pid to its own file.  The main thing is that avahi doesn't seem to
> have the equivalent of "checkproc", [...]

Doesn't it? Well, it has now. ;-)

Please use the start/stop/reload/check commands the avahi daemon
provides you with. At least the start (-D) and stop (-k) commands do
much more than simply forking or killing the daemon. The start command
makes sure that the daemon has been properly initialized before
returning. (and it returns a sensible return level telling the user if
the initialization was successful) The kill commands makes sure that
the daemon is really terminated before returning.

Lennart

-- 
name { Lennart Poettering } loc { Hamburg - Germany }
mail { mzft (at) 0pointer (dot) de } gpg { 1A015CC4 }  
www { http://0pointer.de/lennart/ } icq# { 11060553 }


More information about the avahi mailing list