The problem is in the script
PATH=/var/qmail/bin

The PATH environment variable is overwritten with just one entry. Hence the
shell is not able to figure out where the commands svc, rm, cat are. Suggest
you
replace with the following line
PATH=$PATH:/var/qmail/bin
export PATH

Regards Manny
----- Original Message -----
From: Ould <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 4:22 PM
Subject: tcpserver: fatal:, cat, svc commands not found


> Hello,
>
> In the following several errors I always find when restart,
> stop, start qmail script I got from LWQ. There is also a
> part of this script of interest.
> I don't find what is the problem. The provlem arises
> particularly on Cobalt Raq3. In spite of this thigns works
> (tcpserver is running, sent/receive messages).
> Can anyone helps to fixe this?
>
>
> [root@phoenix qmail-smtpd]#  /etc/rc.d/init.d/qmail restart
> Restarting qmail:
> * Stopping qmail-smtpd.
> /etc/rc.d/init.d/qmail: svc: command not found
> * Sending qmail-send SIGTERM and restarting.
> /etc/rc.d/init.d/qmail: svc: command not found
> * Restarting qmail-smtpd.
> /etc/rc.d/init.d/qmail: svc: command not found
> [root@phoenix qmail-smtpd]#  /etc/rc.d/init.d/qmail stop
> /etc/rc.d/init.d/qmail: cat: command not found
> /etc/rc.d/init.d/qmail: rm: command not found
> Stopping qmail: svscan/etc/rc.d/init.d/qmail: cat: command
> not found
>  qmail/etc/rc.d/init.d/qmail: svc: command not found
>  logging/etc/rc.d/init.d/qmail: svc: command not found
> .
> [root@phoenix qmail-smtpd]#  /etc/rc.d/init.d/qmail start
> Starting qmail: svscan/etc/rc.d/init.d/qmail: env: command
> not found
> tcpserver: fatal: unable to figure out port number for
> smtpd
>
> ----------------------
>
> #!/bin/sh
>
> PATH=/var/qmail/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 "."
> /usr/local/bin/tcpserver -v -u 501 -g 500 0 smtpd
> /var/qmail/bin/qmail-smtpd \
> 2>&1 smtpd 3 &
> echo $! > /var/lock/subsys/qmail-smtpd
>     ;;
>   stop)
>     kill `cat /var/lock/subsys/qmail-smtpd`
>     rm -f /var/lock/subsys/qmail-smtpd
>     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 "."
>     ;;
>   stat)
>     cd /var/qmail/supervise
>     svstat * */log
>     ;;
>   doqueue|alrm)
>     echo "Sending ALRM signal to qmail-send."
>     svc -a /var/qmail/supervise/qmail-send
>     ;;
>   queue)
>     qmail-qstat
>     qmail-qread
>     ;;
>   reload|hup)
>     echo "Sending HUP signal to qmail-send."
>     svc -h /var/qmail/supervise/qmail-send
>
> Thanks
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to