Hi Kyle,
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:
#!/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 here's the qmail-smtpd log run script (regarding Joshua answer):
[root@srv05 log]# more run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/smtpd
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/. But both run script don't
point to the same directory. Did you mean I should not have qmail-send and
qmail-smtpd log run script pointing to the same dir tree (last dir is
different).
I've tried something : I've mkdir /var/log/smtpd. Chowned it to qmaill,
modified my /service/qmail-smtpd/log/run script to :
[root@srv05 ~]# vi /service/qmail-smtpd/log/run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/smtpd
... restarted qmail-smtpd and even restart the whole system. But I still got a
readproctitle saying the same thing.
The funniest thing is that in fact smtpd is not necessary for me, as I don't
plan this host to handle smtpd connections. But I'm want to understand.
BTW, Kyle, yes it's a lot of open ports. But don't worry, this host is for
testing purpose only, and I never take time to clean it ^^;
Thanks very much for the help.
> -----Message d'origine-----
> De : Kyle Wheeler [mailto:kyle-qmail@memoryhole.net]
> Envoyé : mercredi 6 juin 2007 19:50
> À : qmail@list.cr.yp.to
> Objet : Re: readproctitle service errors: ...temporary
> failure?multilog:fatal: unable to lock directory /var/log/qmail
>
> On Wednesday, June 6 at 06:17 PM, quoth Fabien GARZIANO:
> >When I try to start service manually throught svc :
> >
> >[root@srv05 qmail-smtpd]# svc -d .
> >[root@srv05 qmail-smtpd]# ./run
> >multilog: fatal: unable to lock directory /var/log/qmail: temporary
> >failure
>
> Hmmm; your qmail-smtpd run file shouldn't have multilog in
> it. What does this file look like? (post a copy to the list)
>
> >qmaill 8882 0.0 0.0 1428 300 ? S 17:45 0:00
> >/usr/local/bin/multilog t /var/log/qmail/smtpd
>
> ...and the reason is because multilog runs in it's own
> supervised directory (the "qmail-smtpd/log" directory), as shown here.
>
> >[root@srv05 qmail-smtpd]# netstat -a
> >Connexions Internet actives (serveurs et ~A(c)tablies)
> >Proto Recv-Q Send-Q Local Address Foreign
> Address State
> >tcp 0 0 srv05:32000 *:*
> LISTEN
> >tcp 0 0 *:20000 *:*
> LISTEN
> >tcp 0 0 *:32769 *:*
> LISTEN
> >tcp 0 0 *:mysql *:*
> LISTEN
> >tcp 0 0 *:netbios-ssn *:*
> LISTEN
> >tcp 0 0 *:sunrpc *:*
> LISTEN
> >tcp 0 0 *:10000 *:*
> LISTEN
> >tcp 0 0 *:omni *:*
> LISTEN
> >tcp 0 0 *:ftp *:*
> LISTEN
> >tcp 0 0 srv05:ipp *:*
> LISTEN
> >tcp 0 0 srv05:5335 *:*
> LISTEN
> >tcp 0 0 *:microsoft-ds *:*
> LISTEN
>
> EGADS that's a lot of stuff. Please tell me you're actually
> *using* all those services? Otherwise, it's probably a good
> idea to shut them all off (never have a server listening to
> the network unless you actually need it to).
>
> >I've checked lwq site, tried the http://lifewithqmail.org/inst_check
> >script that says everything looks good. I've searched google, this
> >mailing list archive, without success. Sorry for if this
> Email is a bit
> >long, but I got no more solutions right now than asking this list.
>
> No, this is all good information. If only more people
> provided as much useful information as you!
>
> ~Kyle
> --
> Believe nothing, no matter where you read it or who has said
> it, unless it agrees with your own reason and your own common sense.
>
> -- Buddha
>
|