tcpserver runs in the foreground. that line:
tcpserver: status: 0/40
is its [logging] output. when it accepts a new connection, it will output
more.
just run it in the background.
maybe pipe stdout and stderr to a file for logging.
or be elegant and use supervise and svscan (see daemontools
documentation on cr.yp.to).
-tcl.
On Thu, 10 May 2001, Chris Ochap wrote:
> can anyone help me figure out why qmail-smtpd will not start. i have been
> following multiple peices of literature to complete the install...although
> they all differ slightly...i have had no trouble with any stage of the
> install except getting qmail to start listening for remote deliveries.
> whenever i enter the tcpserver command to start qmail-smtpd whether it be in
> a startup script or command line...i get
>
> tcpserver: status: 0/40
>
> and the prompt just sits there like it is waiting for me to enter another
> parameter. i am fairly confident that the command line options are all
> correct:
> tcpserver executable and switches -v = verbose -p = accept comm w/o remote
> host dns lookup -x = use rules database
> location of rules database with a very simple set of rules
> user and group ids for qmail users...define whether tcpserver is on
> localhost...use smtp...ok sorry im going over what most of you probably know
> already. does anyone have any suggestions or need more info? here is a
> copy of my little script...i am running rh 7.1. thanx all.
>
> ----------------------------------------------------------------------------
> -------------------------------------------
> # Source function library.
> . /etc/rc.d/init.d/functions
>
> # Source networking configuration.
> . /etc/sysconfig/network
>
> # Check that qmail is loaded
> [ -f /var/qmail/bin/qmail-start ] || exit 0
>
> RETVAL=0
> prog="qmail"
>
> 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
> }
> stop() {
> # Stop daemons.
> echo -n $"Stopping $prog: "
> killproc qmail-send
> RETVAL=$?
> [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/qmail
> echo
> return $RETVAL
> }
>
> restart() {
> stop
> start
> }
>
> # See how we were called.
> case "$1" in
> start)
> start
> ;;
> stop)
> stop
> ;;
> restart)
> restart
> ;;
> *)
> echo $"Usage: $0 {start|stop|restart}"
> exit 1
> esac
>
> exit $?
>
>