On Mon, Aug 07, 2000 at 08:06:38PM -0700, Ellen Spertus wrote:
! Wrong for the purposes of the /etc/rc.d/init.d scripts; i.e., for the
! "status", "stop", and "restart" commands.
Ahh, okay. After having looked at /etc/rc.d/init.d/functions on our
Linux users group's Redhat machine, I figured out how those killproc
and status functions work.
The ``main'' qmail process is called qmail-send, not qmail, so ``pidof''
won't find it. So the best way for those scripts to find the process is
to put something sensible in /var/run/qmail.pid.
I hope this works...
#!/bin/sh
/var/qmail/rc & echo "$!" > /var/run/qmail.pid
Cheers,
---Chris K.
--
Chris, the Young One |_ If you can't afford a backup system, you can't
Auckland, New Zealand |_ afford to have important data on your computer.
http://cloud9.hedgee.com/ |_ ---Tracy R. Reed