Qmail
[Top] [All Lists]

Re: readproctitle service errors: ...temporary failure?multilog:fatal: u

To: qmail@list.cr.yp.to
Subject: Re: readproctitle service errors: ...temporary failure?multilog:fatal: unable to lock directory /var/log/qmail
From: Kyle Wheeler <kyle-qmail@memoryhole.net>
Date: Thu, 7 Jun 2007 08:22:10 -0600
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Dkim-signature: v=0.5; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=received:comment:domainkey-signature:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; q=dns/txt; s=default; bh=9Fir6hf+BT+6tAahhgmD4hRZvW0=; b=MWJ6JeV0HAOUSgcRSBKVAi91gVUpH/MJYt9Ym3DnKreicMTttbdlPOO3gmSN+8ZmQVvTmEYVKMyDCXG6tp5XJWYC7OAXNyQVJdZXwIXmm/J1F9D7fPO1QZeO38qOaOMb32GsMxxEX2e/+rT/UpGZr4szVEPv228hjJPjmfqo2PI=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=C9dw/Ope0TQluHE6hyLJFnMfEvCa9ph7TzDM6VY2oQCld0+NAvo9NvWAOjNpjwa3TpnbXMr9MsgzjfroHVqmDlKNQ3jEVS8rCM00oGFKvDDeFxEU4YIPgTy1wVdU6OTxI9HwtSIwm75yFfx5SGEeS3brSrlRQzfijxFvAGWm4X8= ;
Domainkey-status: good
In-reply-to: <E93824E60464F54389679978BC3B20522A62E3@srv01.Caliseo.local>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <E93824E60464F54389679978BC3B20522A62E3@srv01.Caliseo.local>
User-agent: Mutt/1.5.15cvs (2007-05-20)
On Thursday, June  7 at 10:43 AM, quoth Fabien GARZIANO:
Thanks for the answer. First here is my qmail-smtpd run script :
[root@srv05 qmail-smtpd]# more run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail

Create the /var/qmail/supervise/qmail-smtpd/run file:


HEH; if I understand you right, you're telling me that your /var/qmail/supervise/qmail-smtpd/run file contains the line "Create the /var/qmail/supervise/qmail-smtpd/run file:" ? Well, there's your problem right there! (Or, more specifically, the problem is that your script is exec'ing multilog before it ever gets around to running qmail-smtpd.) The /var/qmail/supervise/qmail-smtpd/run file should ONLY contain:

#!/bin/sh

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; 
then
   echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
   echo /var/qmail/supervise/qmail-smtpd/run
   exit 1
fi

if [ ! -f /var/qmail/control/rcpthosts ]; then
   echo "No /var/qmail/control/rcpthosts!"
   echo "Refusing to start SMTP listener because it'll create an open relay"
   exit 1
fi

exec /usr/local/bin/softlimit -m 2000000 \
   /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c 
"$MAXSMTPD" \
       -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1

... and it should not contain the email indentation quotes (>), I just left those in to highlight what should be in that file.

I still dont get it. I understand multilog can't lock /var/log/qmail/smtp because it already got a lock on /var/log/qmail/.

That's not true, actually. Multilog only locks one directory at a time; it does not lock sub-folders of the locked directory.

Hope that helps,

~Kyle
--
Life is too important to be taken seriously.
                                                        -- Oscar Wilde

Attachment: pgpkF9QmhaWTk.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>