Operating System - HP-UX
1832962 Members
3147 Online
110048 Solutions
New Discussion

Setting up Maitenance Flag

 
SOLVED
Go to solution
Robin T. Slotten
Trusted Contributor

Setting up Maitenance Flag

I am running oracle 9i with service guard. I modified the minitor script in the case statement in the control file so that it will check for a flag to stop oracle process monitoring. I know this script works outside of service guard control script but it does not function as expected when added to the control file. Is there some where else I need to add a flag and where?
IF you do it more than twice, write a script.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Setting up Maitenance Flag

Without seeing your script, it's not possible to know but my best guess is that you modified the control file of an already running package so that the running instance has no knowledge of your changes.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Setting up Maitenance Flag

One very typical way to do this is to check for the existence (or lack thereof) of a file each time your monitor script loops.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor
Solution

Re: Setting up Maitenance Flag

How are you calling the script?

In my control file I call the attachment as a service:

SERVICE_NAME[0]="iprprtpkg_mon"
SERVICE_CMD[0]="/etc/cmcluster/IPRPRT/lp-script monitor"
SERVICE_RESTART[0]="-r 3"

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.