> > I'm working on a hadoop package for Debian, which also includes init
> > scripts
> > using the daemon program (Debian package "daemon") from
> > http://www.libslack.org/daemon
> 
> Can these scripts be used on other distributions, like Red Hat? Or it's a
> Debian only daemon?
I'm not familiar enough with Red Hat do answer this. The first thing that 
comes to my mind is, whether Red Hat has the same lsb_* scripts that I do 
source.

> I'm actually used so far the Debian start-stop-daemon binary - maybe this
>  is the same?
No. start-stop-daemon is good for programs that behave as nice daemons 
themselves. daemon is especially good for the ugly rest in that it:

- forwards stdout and stderr to a log of your wish instead of nowhere, like 
  the standard hadoop script does

- not only writes pidfiles but also deletes them, when the daemonized process 
  dies

- let's you easily check, whether a daemon is running, which is especially 
  compliate with java stuff, because the executable is always "java"

There are some more nice features, which I've not used yet. Just try to get 
the package "daemon" for your distribution and look up man 1 daemon.

Best regards,

Thomas Koch, http://www.koch.ro

Reply via email to