Nice tip i Found on the web:
Two packages that use the same resources (one is used for development, the other for production). I need to create a package dependency to prevent package1 (whoper) from starting when package2 (bigmac) is running and vice-versa.
Yes, such an exclusive package activity can be established.
1. In each package configuration file add the following values:
whopper package configuration file:
RESOURCE_NAME /cluster/package/package_status/bigmac
RESOURCE_POLLING_INTERVAL 30
RESOURCE_START AUTOMATIC
RESOURCE_UP_VALUE = DOWN
bigmac package configuration file:
RESOURCE_NAME /cluster/package/package_status/wopper
RESOURCE_POLLING_INTERVAL 30
RESOURCE_START AUTOMATIC
RESOURCE_UP_VALUE = DOWN
2. Perform cmapplyconf on both packages.
3. Test to verify that only one package can run at any given time.