Operating System - HP-UX
1828482 Members
2691 Online
109978 Solutions
New Discussion

SERVICE_NAME function in the Package Control script

 
Matthew Murdock
Valued Contributor

SERVICE_NAME function in the Package Control script

I was told by HP, some time ago, that one HAD to define a "Service" in HP ServiceGuard (at least on 11.16, the version im on) or cmviewcl -l package would show the package as down eventhough the cluster would run the Start and stop application scripts (a custom application).
Is this STILL a requirement for ServiceGuard 11.17,.18,.19 or is this one of the things they fixed in subsequent patches/releases of SG?
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: SERVICE_NAME function in the Package Control script

Don't know where they got that from, it has NEVER been a requirement, unless you ar edoing package application monitoring
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
John Bigg
Esteemed Contributor

Re: SERVICE_NAME function in the Package Control script

I think the information you were given is incorrect. I cannot think of a single release which has had a service as a requirement. cmviewcl -l package is based on the package status which does not require a service.

Maybe, as I think Melvyn is suggesting, you were told that you need to have a service if you want the package to go down if your custom application fails. i.e. without using a service, if your custom application fails a cmviewcl -l package would show the package up because it would be up. If you define a service to monitor your application, if the application fails you can have a service to detect this which will fail the package. i.e. if your application fails, cmviewcl -l package would show the package down because it would have been brought down by the service.

Certainly, a service itself is never required to ensure cmviewcl -l package works. If it is then this is a defect which needs investigating!

njia_1
Trusted Contributor

Re: SERVICE_NAME function in the Package Control script

I think the server is required by SG to detect your package status, if u don't defind an service, the sg demon could think your package is down but your application is actually running.

Important: the service name must be the same in package definition and run control script

thanks
Stephen Doud
Honored Contributor

Re: SERVICE_NAME function in the Package Control script

Not only can you create a package without a service, you can create a package that does absolutely nothing, and Serviceguard will start it and stop it on request. This is a useful diagnostic technique for some package configuration issues.
John Bigg
Esteemed Contributor

Re: SERVICE_NAME function in the Package Control script

njia is incorrect. You do NOT need a service for SG to think your package is up!!! If you do not believe it, just try it. It is simple to create a package that does nothing and you will see cmviewcl show the correct status as you start and stop this package without any services being defined.