>>[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?

 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 &

/var/qmail/rc reads as follows:
exec env - PATH="/var/qmail/bin:$PATH" \
csh -cf 'qmail-start ./Mailbox splogger qmail &'

Since I'm exporting $PATH in my initiation file do I need the exec env -
line in rc? Should I just start  qmail-start from my initiation file?
Could changing either of these items cause problems?

Thanks
John

Reply via email to