- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Service Restart
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
Forums
Discussions
Discussions
Discussions
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
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
09-22-2006 03:50 AM
09-22-2006 03:50 AM
I have a Service pointing to a script /etc/cmcluster/
Inisde the script it goes in a loop and checks for certain processes if they are not running, it breaks out of the loop stops the app and starts the application.
My question is, does the script need to return a exit code of 0 or 1, so that the RESTART count will increase or is it sufficient when the loop is broken it comes out of the script to bump the RESTART COUNT Value?
Thanks,
Kathir
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2006 05:33 AM
09-22-2006 05:33 AM
Re: Service Restart
The way a Service is used is that you set up a script to do an infinite loop to check for the existence of required processes, for example the Oracle log writer.
If one of your specific application processes goes missing, your script should exit with an exit value of say 1.
The Service Manager then sees this, and if there is a Restart value set AND the count has not dropped to 0, the Service Manager will restart that service (i.e. your script)
If there is no restart value or it has dropped to a 0, the Service Manager notifies the Package mmanager that a the service has died, and this causes the Package Manager to halt the package and attempt to switch it to an alternate node.
All documented in the Managing Serviceguard manual available from http://docs.hp.com/en/ha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2006 05:46 AM
09-22-2006 05:46 AM
Re: Service Restart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2006 06:01 AM
09-22-2006 06:01 AM
Re: Service Restart
-Kathir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2006 06:02 AM
09-22-2006 06:02 AM
Re: Service Restart
-Kathir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2006 09:30 PM
09-25-2006 09:30 PM
Re: Service Restart
A monitor script for oracle db package is attached.
Regards
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 02:21 AM
09-26-2006 02:21 AM
SolutionIt does not play a role if the service script exits with return value 0 or 1 or anything else. As soon as it exits, SG takes action. The restart counter is increased with every exit.
This is different to the package control script where indeed various exit codes have different meaning:
0 - clean exit
1 - exit with NO_RESTART
2 - exit with RESTART (e.g. dependent EMS resource not available)
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 08:07 AM
09-26-2006 08:07 AM