Operating System - HP-UX
1834018 Members
2073 Online
110063 Solutions
New Discussion

Re: moving from legacy package to modular package sg 11.18

 
SOLVED
Go to solution
anat heilper
Frequent Advisor

moving from legacy package to modular package sg 11.18

Hi All,
I need to move my packages from legacy to modular.
I have several questions:
1. is a control script for RUN and HALT generated for each package?
2. IN my Legacy packages, I had some operations that I needed to do just as the volume groups are starting, and right before they are going offline,
How can I achieve that on the mofdular packager? the external_scripts, and pre scripts, are not called on the correct time for my needs.
Thanks,
Anat
1 REPLY 1
John Bigg
Esteemed Contributor
Solution

Re: moving from legacy package to modular package sg 11.18

1. There is no control script generated for each package. There is a framework which calls various scripts and does things dependent on the package configuration options. You can see the scripts which are used in $SGCONF/scripts.

2. If you modified code outside of the customer_defined_run/halt_cmds functions in your legacy packages then you were doing things which were unsupported and it is highly likely that you will not be able to do this with modular packages.

The expectation is that with modular packages you use the hooks provided i.e. those defined by external_script and external_pre_script. If you need things to be run at times other than when these are run you have a problem.

You could potentially create your own modules and scripts and modify the master scripts but again you would be completely unsupported doing this.