Nick (Keith) Fish:

> Chris Ochap wrote:
>> start() {
>> # Start daemons.
>> echo -n $"Starting $prog: "
>> daemon /var/qmail/rc
>> /usr/local/bin/tcpserver -v -p -x /etc/tcprules/tcp.smtp.cdb -u
>> 51 -g 50 0 smtp /var/qmail/bin/qmail-smtpd
>> RETVAL=$?
>> [ $RETVAL -eq 0 ] && touch /var/lock/subsys/qmail
>> echo
>> return $RETVAL
>> }

> Try adding "2>&1" to the end of the tcpserver line, so:

> /usr/local/bin/tcpserver -v -p -x /etc/tcprules/tcp.smtp.cdb -u 51 -g 50 0 smtp
> /var/qmail/bin/qmail-smtpd 2>&1

[...]

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.

regards,


-- 

Joerg Lenneis

email: [EMAIL PROTECTED]

Reply via email to