- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: To run a script in linux servicegurd
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО08-17-2007 04:54 PM
тАО08-17-2007 04:54 PM
To run a script in linux servicegurd
service with VIP package, we have dgw_start.sh and dgw_stop.sh shell
scripts. We need these scripts should start/stop whenever there is VIP
package start/stop. On other way, VIP package start command (cmrunpkg)
would take care of starting dgw service by executing dgw_start.sh script
automatically. Similarly VIP package stop command (cmhaltpkg) would take
care executing dgw_stop.sh script. Can we configure the service guard a
way we mentioned above. Please let me know. Thanks.
Zubair
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2007 11:36 PM
тАО08-17-2007 11:36 PM
Re: To run a script in linux servicegurd
Search the control script for "customer_defined_run_cmds" and "customer_defined_halt_cmds". You can add anything you need to these two shell functions.
Remember that if any of the added commands returns an error code, ServiceGuard will assume it means that something went wrong and sysadmin's actions will be required to avoid data loss.
The start script should be able to start the application even though it may not be shut down in a controlled manner. This is for the occasion when a package failover happens because the primary node has completely crashed.
When the "customer_defined_halt_cmds" function has been completed successfully, there should be no more application processes accessing the package disks. ServiceGuard will try to unmount the package disks _immediately_ after completing the "customer_defined_halt_cmds". Your stop script should be designed with this in mind.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2007 08:26 AM
тАО08-18-2007 08:26 AM
Re: To run a script in linux servicegurd
Sounds like a job for the package control script.
http://docs.hp.com/en/5991-5390/apcs07.html
Doesn't matter whether the link above is linux or hpux it works the same way.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2007 05:05 PM
тАО08-19-2007 05:05 PM
Re: To run a script in linux servicegurd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2007 09:18 PM
тАО09-14-2007 09:18 PM
Re: To run a script in linux servicegurd
# cmmakepkg $SGCONF/pkg1/pkg1.conf
In addition, there is a whitepaper "Framework for HP Serviceguard Toolkits" explaining the integration: appendix B lists a sample integration with MySQL, and also refers to RUN_SCRIPT, HALT_SCRIPT in the pkg config. file.
Is it correct to go ahead and edit pkg1.conf ?
Why does it not get set by cmmakepkg?
Or am I missing anything else?
Thank-you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2007 03:52 PM
тАО09-15-2007 03:52 PM