App Server continuous respawning
Hi,
I'm testing out the application server install and auto restart functionality on my Linux box. I've set the system up as per the Admin manual with a line in /etc/inittab telling the app to respawn, which it does succesfully. Unfortunately the application server takes so long to start up the domain (~1 minute) that the init program thinks it's crashed before it's had chance to start and so attempts to start another instance. This process is then repeated ad infinitum as each instance takes longer than init is prepared to wait until the too many respawns threshold is reached and it waits for five minutes before starting again.
This results in and average level of 3 1/2 appserver processes active at all times (1 actually running successfully and 2 1/2 failing as the original one is fully running by now) which is obviously undesirable and a pointless waste of resources. Does anyone know how I can get round this so that I can be confident that the appserver will restart if it is killed/crashes, but won't behave in the way it is doing at the moment - currently it's been respawning all night.?
Ta
Keith

