On Fri, Sep 04, 2009 at 10:51:14AM +0200, Penguin Lover J. Roeleveld squawked: > Does anyone know if an existing method to have init-scripts on server A wait > for a service on server B to be started?
I have no idea if this would work or not. But have you tried writing a init script that does nothing but polls for the service and only exits when succeeds? Then you can edit the scripts for the dependent services to require it to start after your polling script. Something like: script /etc/init.d/foo polls tries for database connection. Inside it is a time-delayed loop that tries until it succeeds. Edit /etc/init.d/apache (assuming you are using it for your webserver) to 'need foo' Again, I am just throwing this out randomly. Let me know if it works at all ;p Best of luck, W -- Two college graduates are peeing in a bathroom. The Harvard grad finishes, goes over and washes his hands very well using lots of soap and water, and says "at Harvard, they teach us to be clean." The Yale grad finishes, and washes his hands with a very small amount of soap and water and says "at Yale they teach us to conserve resources." Right then, a Princeton grad walks in, washes his hands thoroughly, and goes to the urinal, saying "At Princeton, they teach us to wash our hands before handling a sacred object." Sortir en Pantoufles: up 1001 days, 8:06

