Operating System - Linux
1752565 Members
5628 Online
108788 Solutions
New Discussion юеВ

Packages dependent on another package?

 
SOLVED
Go to solution
Evan_25
Occasional Contributor

Packages dependent on another package?

I have two packages, that can run on either node of a 2 node system. One is a sybase package, the other is a set of daemons that, among other things, use sybase.

The idea is that we want the packages to be able to be split on either node, or on just one. However, the sybase packages needs to be up before it starts the daemon package. Is there a mechanism in serviceguard that can accomplish this, or will it require a custom service or customer_defined_run_cmds function? Or will the overall structure need to be thought out again?


Thanks for you help,
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Packages dependent on another package?

Shalom Evan,

You might be able to do it with customer_defined_run_cmds

I'd make a little chart and see what the dependencies are. Then you can come up with a logical structure.

Hopefully helpful,

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
melvyn burnard
Honored Contributor
Solution

Re: Packages dependent on another package?

Currently there are no built in packlage dependencies with Serviceguard.
To perform yopur dependencies, you would need to have some form of checking script called from customer_defined_run_cmds that woul dcheck for the existence of the other ackage, and loop while waiting for it to become available, and exit the loop once it was up and running, allowing teh 2nd package to start
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!