- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Starting Daemons Service Guard
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-16-2000 09:22 AM
тАО08-16-2000 09:22 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 09:35 AM
тАО08-16-2000 09:35 AM
Re: Starting Daemons Service Guard
A better method is too add the commands to start your daemons to the package startup script and bypass inittab. That way the daemons start when and where the package starts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 10:04 AM
тАО08-16-2000 10:04 AM
SolutionIf you really have to use init, maybe you could configure your package start script to switch to an unused runlevel (4 or 5 maybe) and package close to switch back to 3. If you then set inittab to only respawn your application at that particular runlevel it may just work. You'd have to give it a good deal more thought though...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 10:29 AM
тАО08-16-2000 10:29 AM
Re: Starting Daemons Service Guard
I have a new idea - writing a script that turns my daemons on or off in inittab (by switching them between "off" and "respawn") and then runs "init q". I would then call this script from the package start/stop scripts.
I think that this just might work (and allow me to avoid using a new run-level to accomplish the same thing).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 05:48 PM
тАО08-16-2000 05:48 PM
Re: Starting Daemons Service Guard
This is a big no no as the architecture of MCSG is based around things like cmcld etc.
If you have a test machine try sending a kill -8 signal to cmcld you will find that your machine will TOC.
SG depends on the status of these procs to decide wheather or not to reboot or change the custer over to a different node. Starting these procs via init will make MCSG go crazy. so dont do it.
If you are asking about starting your package via init dont do this either as the whole deal about SG is that when a package fails it will try and start it up again and if this fails several times (you set this limit) then it swaps the package over to the backup machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 08:55 PM
тАО08-16-2000 08:55 PM
Re: Starting Daemons Service Guard
I don't think it is a good idea to change the inittab file by MC/ServiceGuard, if your systems comes up after an unscheduled break-down, your processes will run on two systems in your network.
I would use the 'SERVICE' commands from the package control script:
# SERVICE_NAME[2]=pkg1c
# SERVICE_CMD[2]="/usr/sbin/ping"
# SERVICE_RESTART[2]="-R" # Will restart the service an infinite
# number of times.
This way, you can start commands and let them respawn bij MC/ServiceGuard.
Look at the comments in your package control script to see what the options are.
Regards,
Andre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2000 07:25 AM
тАО08-21-2000 07:25 AM
Re: Starting Daemons Service Guard
All shared resources fo a package need to be started, monitored and stopped from within the package.
I recommend reading the manual Managing MC/ServiceGuard at:
http://www.docs.hp.com/hpux/ha