At 11:06 PM 8/7/00, you wrote:
>At 02:17 PM 8/8/2000 +1200, you wrote:
> >What kind of pid is considered ``wrong''? I thought all 
> programs that
> >backgrounded themselves, did so by forking a child and 
> exiting the
> >parent.
>
>Wrong for the purposes of the /etc/rc.d/init.d scripts; 
>i.e., for the "status", "stop", and "restart" commands.

Couldn't you just do something like this in the rc script 
to get the correct pid every time?

`ps  -C qmail-send | sed  's/^.\([0-9]*\).*/\1/' | tr -d 
[:space:]`

[Note: There is probably a better way to do 
this.  Suggestions are welcome.]

cheers,
Todd







Reply via email to