Operating System - HP-UX
1830899 Members
2963 Online
110017 Solutions
New Discussion

removing service from package control file

 
SOLVED
Go to solution
Matthias Oswald
Advisor

removing service from package control file

Hi,

I need to remove one out of two services from the package cntl file.
Is it enough to update the cntl file and then stop and restart the package ?

Thanks,
Matthias
mabios
5 REPLIES 5
Slawomir Gora
Honored Contributor

Re: removing service from package control file

Hi,

you have to:
1. modify package cntl and conf file on all nodes
2. stop packages
3. apply new configuration to cluster cmapplyconf
4. run package
John Palmer
Honored Contributor
Solution

Re: removing service from package control file

You won't even have to restart the package unless you have some special monitoring in place. Remember that the package control file is actually a shell script which gets run at package start/stop.

Having removed your service, the next time you stop the package, only the remaining service will be known (and stopped).

All you have to do is amend the controlfile and manually stop the redundant service.

Regards,
John
melvyn burnard
Honored Contributor

Re: removing service from package control file

The procedure can be reviewd by referring to http://docs.hp.com/hpux/pdf/B3936-90065.pdf and start at page 273

Essentially you would need to halt the package, remove the service definitions from the package configuration file and the control files on all nofdes, then reapply the package, and then restart the package.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Slawomir Gora
Honored Contributor

Re: removing service from package control file

Hi,

of course one correct to my answer step 2 must be 1

Prashant Zanwar_4
Respected Contributor

Re: removing service from package control file

Hi,

When you should do the cmapplyconf, it becomes must to restart the services in stipulated window taking an outage.

You are stopping some services, I guess you are going to remove some application from the package.
I would go as follow:
Mark what services are running under your package.
What services you want to remove from.
What is the configuration with respect to it: for example service startup/shutdown script in the package control file, services names in cluster config. file.
Remove these entries.
Plan for LVOL, file system entries to be removed from package control script.
You chalk out this on peace of paper, discuss to your colleuage if required.

Remove subsequesnt client application components if required.
Go ahead with the plan. and then do a cmapplyconf. Also do not forget to change DR config similarly.

I would say remove first the DR site first. Then do the same at Main site.

Hope above helps.

Thanks
Prashant

"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."