[EMAIL PROTECTED] wrote:
>>>[EMAIL PROTECTED] wrote:
>
>>>I have configured my rc file as laid out in LWQ. I am getting this error
>in
>>>maillog.
>>>
>>>Oct 21 13:54:13 hchlunx01 qmail: 940532053.685387 alert: cannot start:
>>>qmail-send is already running
>>>Oct 21 13:54:14 hchlunx01 qmail: 940532054.705194 alert: cannot start:
>>>qmail-send is already running
>>>Oct 21 13:54:15 hchlunx01 qmail: 940532055.725390 alert: cannot start:
>>>qmail-send is already running
>>>Oct 21 13:54:16 hchlunx01 qmail: 940532056.745306 alert: cannot start:
>>>qmail-send is already running
>>>
>>>Since the errors are every second I believe it has something to do with
>>>supervise.
>
>>Dave Sill replied:
>>Correct.
>>Sounds like your /var/qmail/rc is botched, perhaps running qmail-start
>>in the background. Does it contain any "&"'s?
>
>>What platform are you on? Cut-n-paste a copy of your /var/qmail/rc.
>
>I am running on Linux, Redhat 6.0. Yes there were background commands in
>both the /etc/rc.d/init.d/qmail and the/var/qmail/rc file. I removed the "
>&" from /var/qmail/rc and the errors no longer come up. Thank you.
>I left the & in the init.d file. Was that the appropriate fix?
Both /etc/rc.d/init.d/qmail and the/var/qmail/rc should be as they
appear in LWQ unless you know what you're doing.
> The surpervise command in /etc/rc.d/init.d/qmail reads:
> echo -n "Starting qmail: qmail-send"
> supervise /var/supervise/qmail/send /var/qmail/rc |
> setuser qmaill cyclog /var/log/qmail &
OK
>/var/qmail/rc reads as follows:
>exec env - PATH="/var/qmail/bin:$PATH" \
>csh -cf 'qmail-start ./Mailbox splogger qmail &'
Nope. Should be:
#!/bin/sh
# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by default
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`" accustamp
-Dave