Startup Script wont run correctly at startup

From: Michael W (mwarchut@comcast.net)
Date: Thu Mar 09 2006 - 19:20:45 EST


Good afternoon fellow admins

I have a startup script that I am trying to get to execute on boot of our
ES40.  the script runs great from the CLI and does what it is supposed to
do.  However when the server boots up the script does not run properly. The
script does run but dbiproxy does not start like it should. 

Does anyone out there have DBIPROXY running on their system and starting
up? 

Below is my script.  Any suggestions would be greatly appreciated.

Michael

#!/sbin/sh
#
# *****************************************************************
# *                                                               *
# *   Copyright 2006 INC                                  *
# *                                                               *
# *****************************************************************
#
#

RCMGR=/usr/sbin/rcmgr
PATH=/sbin:/usr/sbin:/usr/bin
export PATH

psmName="startdbi"

case "$1" in
'start')

        echo "Starting the dbi proxy"
        su - root /usr/local/bin/dbiproxy --pidfile /var/run/dbiproxy.pid
--child=5 --mode=single --logfile=/db/logs/dbi.log --local
port=12000 >/dev/null 2>&1 &

        ;;

'stop')

        echo "Stopping dbi proxy"
        PIDS=`ps ax |grep [d]biproxy | awk '{print  $1}'`

        for pid in $PIDS
        do
                echo "Killing $pid"
                kill -9 $pid
        done
;;

*)
        echo "usage: $0 {start|stop}"
        ;;
esac



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:29 EDT