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
- Startup works from shell but not from /etc/rc.d/qmail Ellen Spertus
- Re: Startup works from shell but not from /etc/r... Chris, the Young One
- Re: Startup works from shell but not from /e... Ellen Spertus
- Re: Startup works from shell but not fro... Chris, the Young One
- Re: Startup works from shell but not... Ellen Spertus
- Re: Startup works from shell bu... Chris, the Young One
- Re: Startup works from shell bu... Todd Finney
- Re: Startup works from shel... Chris, the Young One
- Re: Startup works from ... Chris, the Young One
- Re: Startup works from ... Todd Finney
- Re: Startup works from ... Chris, the Young One
- Re: Startup works from ... Todd Finney
- Re: Startup works from ... Chris, the Young One
