Operating System - HP-UX
1838240 Members
3456 Online
110125 Solutions
New Discussion

Anatmony of a control file

 
khilari
Regular Advisor

Anatmony of a control file

Hi people, i want to ask as to what are the parameters that have to be set in a control file. Can any one explain lets say i have an application with 5 processes in it. Now, how do i go about making its control file.
Thanks.
7 REPLIES 7
Peter Godron
Honored Contributor

Re: Anatmony of a control file

Hi,
from the manual:
http://docs.hp.com/en/B3936-90073/ch06s02.html
But in general, for example:
SERVICE_NAME[0]=db-mon
SERVICE_CMD[0]="db-mon.sh"
SERVICE_RESTART[0]="-r 2"
Kent Ostby
Honored Contributor

Re: Anatmony of a control file

Take a look at the full ServiceGuard document here for details:

http://docs.hp.com/en/B3936-90100/index.html
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Rick Garland
Honored Contributor

Re: Anatmony of a control file

This can depend on the app. Some apps create their own, some you create
Rick Garland
Honored Contributor

Re: Anatmony of a control file

My mistake - I see the heading for ServiceGuard.
Sorry
Stephen Doud
Honored Contributor

Re: Anatmony of a control file

Are you talking about the general purpose package control script that activates volume groups, mounts file systems and configures the relocatable IP before kicking off the application control script, or are you talking about the application-specific control script?
If you are talking about the application-specific control script, it would depend on what processes you need to launch and how they would get started, ie, what user should start each process, the command line used to start each process and in what order they get started. An equivalent stop script must be created/used for the package to halt properly.
BPatrick
Trusted Contributor

Re: Anatmony of a control file

Khilari,

You need to specify the Service Name, Service command and service restart parameter. Also specify the IP and subnets.

Cheers

Patrick
BPatrick
Trusted Contributor

Re: Anatmony of a control file

Also specify the Volume groups. The rest of the parameters can be left with their default values.