Hi Chris
You put this query up on the 10th. and tc lewis replied? I would endorse his
answer to you, look into supervise from the daemontools toolkit.
If you are starting off with qmail and want to get it up and going then go
with one of the established methods of setting it up - Life with qmail
and/or Tetsu Ushijima's excellent qmail-conf which has complete
configuration scripts for setting up qmail.
http://www.din.or.jp/~ushijima/qmail-conf.html
I believe that it is not recommended to run qmail in the background, and
with tcpserver it is not necessary. The DJB suite has a special way of
working together with tcpserver, the relevant executable (qmail, smtpd,
pop3d) and multilog. tcpserver listens for connections to a port (e.g. 25)
and kicks off the relevant program (smtpd) as required. It is correct that
"2>&1" redirects stderr to stdout but this is actually used (I believe, one
of the regular guys can confirm this) as a special pipe for multilog to pipe
the output to the multilog log for the service.
This is my machines run script for smptd generated by Ushijima's qmail-conf.
You'll see that smtpd is called without the & background option. It works
:-)
Cheers
Patrick
#!/bin/sh
exec 2>&1 \
envdir ./env \
sh -c '
case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac
case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac
exec \
envuidgid qmaild \
softlimit ${DATALIMIT+"-d$DATALIMIT"} \
/usr/local/bin/tcpserver \
-vDU"$H$R" \
${LOCALNAME+"-l$LOCALNAME"} \
${BACKLOG+"-b$BACKLOG"} \
${CONCURRENCY+"-c$CONCURRENCY"} \
-xtcp.cdb \
-- "${IP-0}" "${PORT-25}" \
/var/qmail/bin/qmail-smtpd
'
From: "Chris Ochap" <[EMAIL PROTECTED]>
=====================================
>That is not correct, that will just redirect stderr to stdout.
>You need to put a single & at the end of the line that starts up
>tcpserver to put the process into the background.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.