- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Serv Guard calling startup scripts
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
10-29-2002 02:41 PM
10-29-2002 02:41 PM
Quick question for verification. I understand that SG, by standard configuration, is used to start a process using the process's command entered into the configuration file, and then monitor that process's PID for failure. In the event the PID it grabbed when starting the process goes away, the process is restarted.
I also understand, that if you use the configuration file and have SG call a startup script (instead of the command directly), it will capture the PID of the SCRIPT it called, and get into a loop when the script exits (as the PID goes away) and attempt to call the script again.
My solution to this NORMALLY would be to have SG call a startup script but NOT monitor the PID of anything (just monitor for machine failure via heartbeat.) HOWEVER...is it possible to have SG call a STARTUP SCRIPT and then monitor the processes CALLED BY THE SCRIPT (instead of the scriptG??s PID directly?) And, if it can, can it then be configured to run the STOP SCRIPT (killing all associated processes) and call the startup script again in the event the actuall process's fail?
Thanks for the help!!
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:08 AM
10-30-2002 01:08 AM
SolutionIf I have a Service Script that is used by the package to monitor vital processes/resource, Can I montor the PID's of the processes started from inside this script rather than hte script PID itself?
The answer is no.
The Service Monitor logs the PID of the Service Process command/script and monitors that. The script internally will be doing things like checking for a PID, or that a file exists, and while it does, then all is well. If the file or PID disappears, then you could possibly script in the logic to restart the missing process/create the file, but there are some caveats to be mindful of in doing this. Essentially, if the PID dissappears, or the file goes missing (or whatever) then the script does an exit. Upon this process exiting, the Service Monitor then sees the service has died. If a restart is configured, it will restart that service process, but if the required resources are still missing, it will die again. The Service Monitor then tells the Package Manager that there has been a failure, and proceeds to halt the package, and if it can restart the package on an alternate node.
For more info you may want to read the Managing MC/ServiceGuard manual at:
http://docs.hp.com/hpux/ha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 01:15 AM
10-30-2002 01:15 AM
Re: Serv Guard calling startup scripts
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 07:35 AM
10-30-2002 07:35 AM
Re: Serv Guard calling startup scripts
So the only question I have left (mostly for verification to make sure I understand the manual right) is ...it IS possible to configure SG to start a process, and NOT monitor it at all ...correct? In other words, configure it to run process/script "X", and then ignore the PID (or monitor the PID, but do nothing if it dissappears.)
I hope that makes sense, and thanks again for all the help!
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 07:52 AM
10-30-2002 07:52 AM
Re: Serv Guard calling startup scripts
Basically, yes. The only way SG will monitor an application/PID, is if you tell it to. The way you do that is defining the monitor in the package config and control scripts as a Service Process.
Hope this answers you question
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 08:00 AM
10-30-2002 08:00 AM
Re: Serv Guard calling startup scripts
Mike