post-start failure
Frew Schmidt
frew at ziprecruiter.com
Wed May 4 17:18:54 UTC 2016
Hello All!
I have created a number of post-start scripts to verify that our
servers have successfully started; they tend to look something like
this:
post-start script
wget http://127.0.0.1:9200/ \
--retry-connrefused \
-O /dev/null \
--tries 30 \
--waitretry 1
end script
This correctly blocks until the server is accessible. The frustrating
thing is that if a server is running, but hung or something, this
script will exit non-zero, yet the server will still be considered up.
Is there a pattern to have the post-start script be what I want, where
a non-zero exit stops the service and marks it as failed?
Thanks
(PS: please do not remove me from the To/CC headers, I am not
subscribed to the list.)
--
fREW Schmidt
https://blog.afoolishmanifesto.com
More information about the upstart-devel
mailing list