You will need to use 'nohup' to start these services.  They are being
terminated when the shell they are started from closes.

Here is the line I use to start qmail under the same OS:

/usr/bin/nohup /var/qmail/rc >> /var/adm/qmail/nohup.out &

On Thu, 29 Jul 1999, Jim Arnott wrote:

> Hi,
> 
> I'm new to qmail and all its utilities.
> I'm using the latest qmail (1.03) and Digital Unix 4.0
> 
> Has anyone run into a problem where supervise does not start or stay
> running
> (nor start any sw that it should start) when a system is coming up
> during boot.  See the script below.
> 
> I also had the same problem with starting tclserver from an rc3.d
> script. Qmail-send would start fine, but
> only if I start it without supervise.
> 
> After I boot and do a ps -aef,  no qmail or supervisor processes have
> started.  When I start this script by
> hand (as root) it works fine.
> 
> Also, I get the correct comments from the echos on the monitor upon
> bootup, so I know the script is running and
> executing the supervise programs.
> 
> I do not get any error messages.
> 
> Any ideas ?
> 
> Thanks for any help.
> 
> Jim Arnott
> Bridge Info Sys
> 
> #cd /sbin/rc3.d
> #ls -lg  S99qmailstart
> lrwxrwxrwx   1 root     bin           20 Jul  6 07:29 S99qmailstart ->
> ../init.d/qmailstart
> #ls -lg ../init.d/qmailstart
> -rwxr-xr-x   1 root     system      1710 Jul  7 01:45
> ../init.d/qmailstart
> #cat ../init.d/qmailstart
> #!/sbin/sh
> 
> NAME=qmail
> SUPERVISE=/usr/local/bin/supervise
> ACCUSTAMP=/usr/local/bin/accustamp
> CYCLOG=/usr/local/bin/cyclog
> SETUSER=/usr/local/bin/setuser
> SVC=/usr/local/bin/svc
> 
> ECHO=/bin/echo
> QMAILDIR=/var/qmail
> PATH=/bin:/usr/bin:/usr/local/bin:$QMAILDIR/bin
> CMD_ENV=bsd
> export CMD_ENV PATH
> 
> QMAILDUID=606
> NOFILESGID=600
> 
> set -e
> 
> case "$1" in
>         start)
>                 set `who -r`
>                 if [ $9 = "S" ]; then
>                         $ECHO -n "Starting qmail: "
>                         $ECHO -n "(qmail persistent daemons) "
>                         $SUPERVISE $QMAILDIR/supervise/qmail-send env -
> \
>                         PATH="$QMAILDIR/bin:$PATH" qmail-start ./Mailbox
> $ACCUSTAMP | $SETUSER qmaill $CYCLOG /var/log/qmail &
>                         $ECHO -n "(qmail-smtpd via tcpserver) "
>                         $SUPERVISE $QMAILDIR/supervise/tcpserver-qmail \
> 
>                         /usr/local/bin/tcpserver -u $QMAILDUID -g
> $NOFILESGID 0 smtp \
>                         $QMAILDIR/bin/qmail-smtpd &
>                         $ECHO .
>                 fi
>                 ;;
>                 stop)
>                         $ECHO -n "Stopping qmail: "
>                         $ECHO -n "(qmail-smtpd via tcpserver) "
>                         $SVC -dx $QMAILDIR/supervise/tcpserver-qmail
>                         $ECHO -n "(qmail persistent daemons) "
>                         $SVC -dx $QMAILDIR/supervise/qmail-send
>                         $ECHO .
>                         ;;
>                 alrm)
>                         $ECHO "Sending ALRM signal to qmail-send."
>                         $SVC -a $QMAILDIR/supervise/qmail-send
>                         ;;
>                 hup)
>                         $ECHO "Sending HUP signal to qmail-send."
>                         $SVC -h $QMAILDIR/supervise/qmail-send
>                         ;;
>                 restart)
>                         $ECHO "Restarting qmail:"
>                         $ECHO "* Stopping qmail-smtpd via tcpserver."
>                    $SVC -d $QMAILDIR/supervise/tcpserver-qmail
>                         $ECHO "* Sending qmail-send SIGTERM and
> restarting."
>                         $SVC -t $QMAILDIR/supervise/qmail-send
>                           $ECHO "* Restarting qmail-smtpd via
> tcpserver."
>                         $SVC -u $QMAILDIR/supervise/tcpserver-qmail
>                         ;;
>                 *)
>                         $ECHO "Usage: /etc/init.d/$NAME
> {start|stop|restart|alrm|hup}"
>                         exit 1
>                         ;;
> esac
> 
> exit 0
> 
> 

---------------------------------
Timothy L. Mayo                         mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.      http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810-8888 Phone
(412) 810-8886 Fax

Reply via email to