HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- package start/stop scripts for new module packages
Operating System - HP-UX
1833410
Members
3126
Online
110052
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2011 09:29 AM
06-16-2011 09:29 AM
package start/stop scripts for new module packages
Formerly in a.11.16 you had a package control script denoting the path to start and stop scripts for a application (package).
In a.11.20, I am not understanding how or where the package (application) start and stop scripts are ran or even placed to be called automatically. The only package module I see is for the sg/package_ip module. Im sure its simple once explained. thanks.
In a.11.20, I am not understanding how or where the package (application) start and stop scripts are ran or even placed to be called automatically. The only package module I see is for the sg/package_ip module. Im sure its simple once explained. thanks.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2011 11:00 AM
06-16-2011 11:00 AM
Re: package start/stop scripts for new module packages
With modular packages, the package script is optional, and is called "external_script". If you use it, the script must fulfill certain conditions.
The package script must be written to accept arguments similar to a typical SysVinit script - i.e. "
It must also implement a third argument: "
No matter what the package script ends up doing, it should terminate with one of three possible result codes:
* 0 = operation successful
* 1 = permanent failure: package will be halted and should not be restarted on any other node (e.g. the package is in a state that does not allow restarting)
* 2 = the package operation was not successful on this node, but the package can be moved to some other node and a restart attempt made there
Because of these conventions, the package script can be declared in the configuration file with one line:
external_script
To use this, you must include the "external" module in your modular package configuration.
An example package script should be available at /etc/cmcluster/examples/external_script.template.
When the new-style package script runs, it inherits some Serviceguard-specific environment variables which might be useful for you. See the example script for details.
MK
The package script must be written to accept arguments similar to a typical SysVinit script - i.e. "
It must also implement a third argument: "
No matter what the package script ends up doing, it should terminate with one of three possible result codes:
* 0 = operation successful
* 1 = permanent failure: package will be halted and should not be restarted on any other node (e.g. the package is in a state that does not allow restarting)
* 2 = the package operation was not successful on this node, but the package can be moved to some other node and a restart attempt made there
Because of these conventions, the package script can be declared in the configuration file with one line:
external_script
To use this, you must include the "external" module in your modular package configuration.
An example package script should be available at /etc/cmcluster/examples/external_script.template.
When the new-style package script runs, it inherits some Serviceguard-specific environment variables which might be useful for you. See the example script for details.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP