On Tue, Apr 10, 2001 at 06:40:14PM +0530, Mustafa Mahudhawala wrote:
> Hello,
> I have successfully installed qmail on FreeBSD,
> using tcpserver & Daemontools i.e. starting qmail daemons from /service 
> directory.
> (Based on life with qmail help, but here svscan & supervice are not only 
> used for qmail)
> 

> My Problem is there are no logs generated for smtpd & pop3d
> 
> Contents of /service/qmail-send/run
> ---------------------------------------------------
> #!/bin/sh
> exec /var/qmail/rc
> 
> I have modified /var/qmail/rc as follows to use multilog instead of splogger.
> 
> Contents of /var/qmail/rc
> ----------------------------------------------------
> #!/bin/sh
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Maildir/ /usr/local/bin/multilog -t 
> !/usr/local/bin/tai64nlocal /log/qmail
>
Better use multilog in a log/run script and let svscan provide the pipe,
just as in qmail-smtpd. Dont forget to chmod +t /service/qmail-send and
restart the supervise process (see below).
 
> (This Works but below doesn't)
> 
> Contents of /service/qmail-smtpd/run
> ------------------------------------------------------
> #!/bin/sh
> exec /usr/local/bin/tcpserver -v -Ho -x /etc/qmail/tcp.smtp.cdb -u 1012 -g 
> 1012 0 smtp /var/qmail/bin/qmail-smtpd
> 
> Contents of /service/qmail-smtpd/log/run
> ---------------------------------------------------------
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
> !/usr/local/bin/tai64nlocal /log/qmail/smtpd
>
You need to chmod +t /service/qmail-smtpd to have log/run started. If the
service is allready running, use
# cd /service
# mv qmail-smtpd .qmail-smtpd
# svc -dx .qmail-smtpd
# chmod +t .qmail-smtpd
# mv .qmail-smtpd qmail-smtpd

check with
# svstat qmail-smtpd qmail-smtpd/log

Hope this helps, Gerrit.

-- 
[EMAIL PROTECTED]
                                                        innominate AG
                                                 the linux architects
tel: +49.30.308806-0  fax: -77              http://www.innominate.com

Reply via email to