Hi,

    Even running the stop process of qmail, the qpop3 process keeps alive
and running.

My code:

# begin ------ /etc/rc.d/init.d/qmaild (just start and stop - from
lifewithqmail) ------

#!/bin/sh

PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

case "$1" in
  start)
    echo -n "Starting qmail: svscan"
    cd /var/qmail/supervise
    env - PATH="$PATH" svscan &
    echo $! > /var/run/svscan.pid
    echo "."
    ;;
  stop)
    echo -n "Stopping qmail: svscan"
    kill `cat /var/run/svscan.pid`
    echo -n " qmail"
    svc -dx /var/qmail/supervise/*
    echo -n " logging"
    svc -dx /var/qmail/supervise/*/log
    echo "."
    ;;

# end ------ /etc/rc.d/init.d/qmaild ------

# begin ------ /var/qmail/supervise/pop3d/run ------

#!/bin/sh
/usr/local/bin/tcpserver -v -R 0 pop-3 /var/qmail/bin/qmail-popup
myserver.domain.com \
  /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1

# end ------ /var/qmail/supervise/pop3d/run ------

The first time I run "/etc/rc.d/init.d/qmaild start", it's ok, but if I run
"/etc/rc.d/init.d/qmaild stop" and "ps ax" I still can see:

14993 pts/0    S      0:00 /usr/local/bin/tcpserver -v 0 pop-3

And if I try to run "/etc/rc.d/init.d/qmaild start" again:

tcpserver: fatal: unable to bind: address already used

What is wrong?

I'm running Conectiva Linux 6.0, kernel 2.2.17. It's a brazillian
distribution based on Red Hat.

Thanks,

Ari





Reply via email to