On Thu, May 18, 2000 at 08:15:02PM -0700, Keven Jones wrote:
> I have successfully installed and test qmail with maildir but:
>
> qmail-start is KILLING my system. I am using supervise and
> tcpserver. I sometimes have upto 32 qmail processes and currently I
> have no users on the system. I am running redhat 6.2. All my qmail
> daemons are up but as stated I have sometimes 10 qmail-start
> ./Maildir/ splogger running. My messages file states:
> 958703323.6511621 alert: cannot start: qmail-send is already running
> This messages is repeatedly being written to /var/log/messages.
>
> My /var/qmail/rc script is the followin:
> #!/bin/sh
>
> exec env - $PATH="/var/qmail/bin:$PATH"\
> qmail-start ./Maildir/ splogger qmail \
> tcpserver 0 110 /var/qmail/bin/qmail-popup mail.foo.com \
> /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
If you're running this under supervise, you should start your POP service and
qmail-start from separate scripts. Also, you should *not* put whatever you're
running from supervise in the background, or supervise will start it repeatedly
(which is what you're seeing happen).
So your qmail-start script might look like this:
#!/bin/sh
exec env - $PATH="/var/qmail/bin:$PATH"\
qmail-start ./Maildir/ splogger qmail
Note that there's no & at the end. You should start your POP and SMTP services
from separate scripts.
Since you've installed daemontools, you might consider using multilog instead
of splogger/syslogd, and you might want to start all your supervised processes
with svscan. See http://cr.yp.to/daemontools.html.
Chris