Re: daemon and killproc

Shawn Bayern (shawn.bayern@yale.edu)
Fri, 26 Feb 1999 23:53:10 -0500 (EST)

On Fri, 26 Feb 1999, Ken Lai wrote:

> In the sysvinit scripts in /etc/rc.d/init.d/ on redhat systems, they often
> use daemon to start a process in the background, and killproc to terminate
> it. I'm puzzled, however, because I could find no such command in the
> root's path, and I can find no documentation for these commands, and they
> are not documented in man init or as a shell builtin.
> Does anybody know how they work? or where I can find documentation on
> them? (other than going out to buy a redhat manual...)

They're shell-script functions; see /etc/rc.d/init.d/functions.

Why spawn a separate process just to spawn a separate process. :)

Shawn