Operating System - HP-UX
1832541 Members
6237 Online
110043 Solutions
New Discussion

How to force package halt?

 
SOLVED
Go to solution
Thomas Schler_1
Trusted Contributor

How to force package halt?

Hi,

we're running MC / Service Guard A.11.14 on HP-UX 11.00.

Assume MC/SG triggers a package halt due to some HW or SW problems. One of the stop scripts (or more?) does not come to its end because in some circumstances it hangs in an endless loop.

Is there any way to force a package halt by breaking a running stop script and not executing further stop scripts?

I'm thinking of an alternate way than checking and modifying each stop script. Maybe, there is a time-out variable to configure that allows a package halt to take not longer than say 30 minutes.
no users -- no problems
4 REPLIES 4
John Palmer
Honored Contributor
Solution

Re: How to force package halt?

Hi,

See HALT_SCRIPT_TIMEOUT and SERVICE_HALT_TIMEOUT defined in your package control script.

Regards,
John
melvyn burnard
Honored Contributor

Re: How to force package halt?

you need to look at configuring:
HALT_SCRIPT_TIMEOUT
in your package files.
By default there is NO timeout. The interval is set in seconds, and there is a maximium of approx 4294 seconds.
For more detail, you could look at htis in eht Managing MC/ServiceGuard manual at:
http://docs.hp.com/hpux/ha
and check hte section/:
How Package Control Scripts Work
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
fg_1
Trusted Contributor

Re: How to force package halt?

Thomas

Use the HALT_SCRIPT_TIMEOUT feature in your cluster. Typically in the clusters that i have set up this value is set for 300 Seconds (5 minutes), if your stop script has not finished in that amt of time then this value will kick in.

Hope this helps

Gl.
Ashwani Kashyap
Honored Contributor

Re: How to force package halt?

YEs use HALT_SCRIPT_TIMEOUT and SERVICE_HALT_TIMEOUT varibales in the package configuration file for the same .

One thing to be aware of is that the HALT_SCRIPT_TIMEOUT should be greater than all SERVICE_HALT_TIMEOUT values combined .