Operating System - HP-UX
1825766 Members
2168 Online
109687 Solutions
New Discussion

MAX_RESTARTS and RESTARTS in cmviewcl -v command

 
SOLVED
Go to solution
MQ'ski
Regular Advisor

MAX_RESTARTS and RESTARTS in cmviewcl -v command

Hello.
I've tried to find out the answer for my question but couldn't. I can't test it as well currently.

I wonder what value -> MAX_RESTARTS and RESTARTS in output of command cmviecl -v means.

I know that in control file of each package there is setting related to restarts SERVICE_RESTART which defines 1, more than 1 or (-R) infinitive/unlimited number of restarts.
Can you explain me if I'm correct that infinitive/unlimited means that package will be restarted always on the same node. But what are the limitations of restarts?
When it will give up and switch to second node in cluster? I presume that my understanding is correct that SERVICE_RESTAR="-r 2" will try twice to restart pkg until gives up and switches to second node in cluster?

And finally what MAX_RESTARTS and RESTARTS means in cmviewcl -v.
2 REPLIES 2
sarfaraj ahmad
Trusted Contributor
Solution

Re: MAX_RESTARTS and RESTARTS in cmviewcl -v command

Hi,

please find the description as below,
MAX_RESTARTS: If a service fails, this is the maximum number of times it will be attempted to be restarted (as defined by the SERVICE_RESTART parameter in a package's RUN_SCRIPT).

RESTARTS: The number of times that the service has failed and was restarted.

please go through the man page for cmviewcl command for more detail,


http://www.unix.com/man-page/All/1m/cmviewcl


Hope this will be helpful for you.

MQ'ski
Regular Advisor

Re: MAX_RESTARTS and RESTARTS in cmviewcl -v command

Hi.
Thank you for answer.
It's more and more clear now.
But I'm confused with parameter (-R) which means infinitive/unlimited number of restarts.
What will happen then? When package has a chance to be started on the second node?