Please Help.

Some time ago (several months) I successfully set up qmail on my 
Linux box at work.  (I use it as a "junk" mail server.)

I used "Life With qmail" as my guide and things went well.  It worked 
and HAS worked flawlessly for me lo these many months.

Yesterday, for the first time since that time of installation I had 
occasion to reboot my box.  I guess I must never have properly 
configured qmail to start automatically, 'cause it didn't!

Re-reading through LWQM I attempted to "manually" start qmail by 
executing /usr/local/sbin/qmail (script follows).  Upon doing that, 
my console starts scrolling with the following messages:

supervise: fatal: unable to acquire log/supervise/lock: temporary failure

supervise: fatal: unable to acquire qmail-send/supervise/lock: 
temporary failure

supervise: fatal: unable to acquire qmail-smtpd/supervise/lock: 
temporary failure


Unfortunately, the failure seems anything BUT temporary!

I'm writing as a leech who really wants his qmail server operational 
again and knows that y'all aren't sitting around with nothing to do, 
but hopes that someone can off the top of their head offer me a 
suggestion/solution and save me a lot of re-reading.

<timid> please don't hurt me </timid>


My /usr/local/sbin/qmail (if it helps):

#!/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 "."
     ;;
   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
     ;;
   pause)
     echo "Pausing qmail-send"
     svc -p /var/qmail/supervise/qmail-send
     echo "Pausing qmail-smtpd"
     svc -p /var/qmail/supervise/qmail-smtpd
     ;;
   cont)
     echo "Continuing qmail-send"
     svc -c /var/qmail/supervise/qmail-send
     echo "Continuing qmail-smtpd"
     svc -c /var/qmail/supervise/qmail-smtpd
     ;;
   restart)
     echo "Restarting qmail:"
     echo "* Stopping qmail-smtpd."
     svc -d /var/qmail/supervise/qmail-smtpd
     echo "* Sending qmail-send SIGTERM and restarting."
     svc -t /var/qmail/supervise/qmail-send
     echo "* Restarting qmail-smtpd."
     svc -u /var/qmail/supervise/qmail-smtpd
     ;;
   cdb)
     tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
     chmod 644 /etc/tcp.smtp*
     echo "Reloaded /etc/tcp.smtp."
     ;;
   help)
     cat <<HELP
    stop -- stops mail service (smtp connections refused, nothing goes out)
   start -- starts mail service (smtp connection accepted, mail can go out)
   pause -- temporarily stops mail service (connections accepted, 
nothing leaves)
    cont -- continues paused mail service
    stat -- displays status of mail service
     cdb -- rebuild the tcpserver cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery
  reload -- sends qmail-send HUP, rereading locals and virtualdomains
   queue -- shows status of queue
    alrm -- same as doqueue
     hup -- same as reload
HELP
     ;;
   *)
     echo "Usage: $0 
{start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue
|help}"
     exit 1
     ;;
esac

exit 0
-- 


signat-url: http://www2.potsdam.edu/dctm/prescor/signat-url.htm
cubiclecam: http://digirom.potsdam.edu/~prescor/cubiclecam.html
    ^^^ <--- Off-line unless someone knows how to get camserv to
             compile under RedHat 7...  *sigh*  :-(

Reply via email to