- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restart on same host
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
тАО11-08-2000 07:06 AM
тАО11-08-2000 07:06 AM
restart on same host
Can I restart a failed package on the host that failed ??
How do I fo this in the config
Thanks
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 07:12 AM
тАО11-08-2000 07:12 AM
Re: restart on same host
Yes, you will need to run cmmodpkg to enable the package on the host that failed:-
cmmodpkg -e -n
then
cmrunpkg -n
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 07:32 AM
тАО11-08-2000 07:32 AM
Re: restart on same host
I am more after SG to do this - can this be put in SG's scripts ??
where ??
Basically I want it try to restart on the same node after failure
Thanks
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 07:56 AM
тАО11-08-2000 07:56 AM
Re: restart on same host
SERVICE_RESTART[n]
This can be:-
null - no restart
-r n - n restarts
-R infinite number of restarts.
Is this what you are after?
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2000 08:16 AM
тАО11-08-2000 08:16 AM
Re: restart on same host
If I understand your question correctly, then edit the package run script - this is identified in the package control script created by the cmmakepkg command - line entry "RUN_SCRIPT" in the package control script defines the package run script. You need to isolate the "exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2000 04:50 AM
тАО11-09-2000 04:50 AM
Re: restart on same host
In the setup here under SERVIVE_RESTART is process monitor scripts,
What I want is for the process that is monitored to be restarted (if it can) on the host it failed on - before it moves to the secondary host. There is not issue with data corruption in this setup, I just want to try to stop user disconnections for a flaky process
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2000 05:12 AM
тАО11-09-2000 05:12 AM
Re: restart on same host
while true
do
if
ps -ef | grep -v grep | grep -q "wdblsnr oraclelive 2255"
then
sleep 30
else
/etc/cmcluster/oraclelive/webdb.sh start
exit
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2000 12:26 AM
тАО11-10-2000 12:26 AM
Re: restart on same host
In the above script webdb.sh is the name of a script which starts the webdb listener and not the name of the monitoring script itself.