Operating System - HP-UX
1833777 Members
2163 Online
110063 Solutions
New Discussion

Change package start parameter

 
SOLVED
Go to solution
spock
Advisor

Change package start parameter

Hi All,
One question about automatic package Start.
I have 1 node whith 2 packages (pkgA & pkgB). At system reboot, "pkgA" start before "pkgB".
I would like to start "pkgB" before "pkgA", do you have a methods to do it ?
Thanks for response.
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: Change package start parameter

Shalom Spock,

Create one package that starts what was pckg a and b. If there is a true dependency they should start in the same package control script. Otherwise there is no mechanism to control start order.

Live long and prosper?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stephen Doud
Honored Contributor

Re: Change package start parameter

Except for CFS packages, Serviceguard does not currently have the ability to control package order startup.
To accommodate this need, you could set AUTO_RUN to NO in the pkgA package configuration file. This prevents pkgA from starting when the cluster comes up.

Then in the customer_defined_run_cmds of pkgB control script, run a script (exec nohup) that checks that pkgB startup has completed, then performs 'cmmodpkg -e pkgA'. It may be necessary to also enable the node to run the package in order to get pkgA to start automatically:
cmmodpkg -e -n pkgA
This will enable pkgA to start.
spock
Advisor

Re: Change package start parameter

Thanks for your help.
I start my second package with the second one.