Operating System - HP-UX
1836458 Members
2349 Online
110101 Solutions
New Discussion

Monitor set to 0 restarts, should be unlimited

 
SOLVED
Go to solution
Rudy Williams
Regular Advisor

Monitor set to 0 restarts, should be unlimited

Hello--

I have a package with 22 services. Each service monitors one or more processes and is configured to be restarted an unlimited number of times.

cmviewcl -v -p package reports that all services but one can be restarted an unlimited number of times. Nine of the services use the exact same script except for a different process name to search for.

I confirmed that the configuration and control files have the proper syntax and do not have repeating entries or array index numbers.

Can anyone offer an idea as to what may be causing the problem?

cjw
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: Monitor set to 0 restarts, should be unlimited

Hi Cjw,

If you wanted the service to be restarted unlimited number of times, you would specify "-R" in the package control file.

There is no place else that alters the behaviour of this parameter in the ServiceGuard.

May be the configuration in the files got changed after you brought up the package?. You may want to try restarting package when you get some time.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Rudy Williams
Regular Advisor

Re: Monitor set to 0 restarts, should be unlimited

Hey Sri--

I should have mentioned: I am using the -R for each service and I have stopped and restarted the package a few times. The behavior remains the same.

cjw
melvyn burnard
Honored Contributor

Re: Monitor set to 0 restarts, should be unlimited

Which OS version ?
Which Sg version?
Which Sg patch is installed?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Dietmar Konermann
Honored Contributor
Solution

Re: Monitor set to 0 restarts, should be unlimited

Really double-check that your array definitions are correct. Add a "set -x" to the start_services() function and watch the cmrunserv commands during package start.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Rudy Williams
Regular Advisor

Re: Monitor set to 0 restarts, should be unlimited

Dietmar--

I enabled set -x, and saw in the log file that the -R argument was not passed for this service monitor.

I copied a SERVICE_RESTART line from a known working service and modified the array element. It works fine now.

Thank you.

cjw