Hi all:

        I'm installing serialmail and AutoTURN to provide our customers with
ETRN. So far I like what I'm seeing, but I'd like to know how to
redirect the output of the startup script to a log file instead of the
screen. My script is:


--------------------------------
/usr/local/bin/tcpserver -c55 -v -x/etc/tcp.smtp.cdb -u 7791 -g 2108 0
smtp \
sh -c '
/usr/local/qmail/bin/qmail-smtpd
cd /usr/local/qmail/autoturn
exec setlock -nx $TCPREMOTEIP/seriallock \
maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN
'
2>&1 | /usr/local/bin/accustamp | /usr/local/bin/setuser root
/usr/local/bin/cyclog -n12 /var/log/qmail-receive &
--------------------------------


        I just replaced the "/usr/local/qmail/bin/qmail-smtpd" of my original
script with the "sh -c '...'" part, as the AutoTURN instructions said.
What am I missing?
        (Sorry, BTW, if you choke at the sight of something really wrong or
horrible in the above script. I'm far from being an Unix guru (duh), but
I'm willing to be enlightened).



                                                Paulo Jan.
                                                DDnet.

Reply via email to