Oi,

Tenho um qmail instalado usando o mysql como banco de dados de usuario.
O problema q esta ocorrendo e quando tento conectar na maquina via porta 110
pop3, demora 2 minutos para aparecer o sistema, estou usando esse shell
script para carregar o programa.


O que pode estar acontecedo ?


#!/bin/bash
#
# chkconfig: 2345 87 42
# description: qmail-pop3d is a POP3 Daemon.
# description(pt_BR): qmail-pop3d � um POP3 Server.
# processname: qmail-pop3d
# pidfile: /var/run/qmail-pop3d.pid
# info: Developed by Rodrigo Telles <[EMAIL PROTECTED]>

# source function library
. /etc/rc.d/init.d/functions
PATH=/usr/bin:/bin:/usr/local/bin:/var/qmail/bin

name=qmail-pop3d
chkpwd=~vpopmail/bin/vchkpw
pid=/var/run/$name.pid
chk=$(ps -Afw|grep "0 110"|grep -v "grep"|awk '{print $2}')
if [ -f "/etc/resolv.conf" ] ; then
    domain=$(grep "search" /etc/resolv.conf|awk '{print $2}')
else
    printf "File /etc/resolv.conf not found, aborting...\n"
    exit 1
fi


case "$1" in
  start)
    if [ -z "$chk" ] ; then
        if [ -f "$pid" ] ; then
            printf "$name dead, but pid file exists (pid `cat $pid`).\n"
        fi
        if [ -z "$domain" ] ; then
            printf "Unresolved domain, aborting...\n"
            exit 1
        fi
        echo "Starting %s services: " "$name"
        tcpserver -c 500 -H -R 0 110 qmail-popup $domain \
        $chkpwd $name Maildir 2>/dev/null &
        sleep 1
        ps -Afw|grep "0 110"|grep -v "grep"|awk '{print $2}' >$pid
        touch /var/lock/subsys/$name
        echo
    else
        printf "$name (pid "$chk") alread running...\n"
        exit 1
    fi
    ;;
  stop)
    if [ -z "$chk" ] ; then
        printf "$name not running.\n"
        exit 1
    else
        echo "Stopping %s services: " "$name"
        kill -9 $chk
        rm -f /var/lock/subsys/$name
        rm -f $pid
        echo
    fi
    ;;
  restart|reload)
    $0 stop
    $0 start
    ;;
  status)
    if [ -z "$chk" ] ; then
        if [ -f "$pid" ] ; then
            printf "$name dead, but pid file exists (pid `cat $pid`).\n"
        else
            printf "$name not running.\n"
            exit 1
        fi
    else
        printf "$name (pid $chk) is runnig...\n"
        exit 1
    fi
    ;;
  *)
    echo "Usage: %s {start|stop|status|restart}\n" "$name"
    exit 1
esac

exit 0


Assinantes em 20/02/2002: 2250
Mensagens recebidas desde 07/01/1999: 155393
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista:
            mailto:[EMAIL PROTECTED]

Responder a