tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Startup Script wont run correctly at startup
@ 2006-03-10  0:20 Michael W
  0 siblings, 0 replies; only message in thread
From: Michael W @ 2006-03-10  0:20 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-10  0:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-10  0:20 Startup Script wont run correctly at startup Michael W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox