Operating System - HP-UX
1755724 Members
3213 Online
108837 Solutions
New Discussion юеВ

Re: Regarding configuring package dependency

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Regarding configuring package dependency

Hello Techies,

We have a two node cluster with few packages running on one node & few on another node. Now we need to configure a particular order in which these packages should start on one of the node. As we have total 4 packages on one node and three of them are dependent on forth package, so we need to start that forth package first of all as rest of packages are dependent on it. So please lemme know how to configure such dependency.

Thanks & regards,
Kavita
4 REPLIES 4
SoorajCleris
Honored Contributor

Re: Regarding configuring package dependency

Hi Kavita,

It is done in packave control file.
There is portion for package dependencies.

This document is a perfect one
docs.hp.com/en/15673/Understanding-Package-Dependencies.pdf

please check.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Rita C Workman
Honored Contributor
Solution

Re: Regarding configuring package dependency

A quick and simple thing you can do:

At the very start of your package.cntl file....put a simple 'sleep xx' command in the packages you want to ensure don't get going before pkg#4.

Another thing you can do is put in a step again at the beginning of the other pkg.cntl file that says to check if pkg#4 is up and running. If pkg#4 is up and running then start this other package.
A statement like:
cmviewcl -l package | grep pkg#4 | grep "running" | awk '{ print $3 }'

will give you output (running) if pkg is running or nothing if it's not. So you could create a quick script to compare if true (i.e. running) and then kick off the other pkgs. Or if not true, tell the other package to sleep 10 seconds to try again, until it finally is true and then the other package can start up.

This is a totally quickie suggestion, but hope it gives you some food for thought.

Regards,
Rita
Kavita Poonia
Regular Advisor

Re: Regarding configuring package dependency

Awesome Rita !!! Thanks a lot for your valuable suggestion. I was exactly thinking of this but was not getting a way to start.

Thanks again !!!!

Kavita
Kavita Poonia
Regular Advisor

Re: Regarding configuring package dependency

Thanks to Suraj too for that informative doc.