Matthew Wilson wrote: > I'm using supervisord to monitor a script that polls an external > webservice every second. > > Sometimes this external webservice crashes and so my script crashes. > Supervisord does the right thing and sends an event to a different > script I wrote and then I get an email. Supervisord also restarts my > script. > > Here's the problem: > > When the webservice crashes, it takes about a minute for it to come > back up. In that minute, I get dozens of emails telling me that my > script died because supervisord keeps restarting it. > > I don't want to tell supervisord to stop trying to restart my script > after some number of retries. Instead, I want supervisord to wait for > about 10 seconds in between each restart. > > Is this what STOPWAITSECS should be used for?
"startsecs" in the webservice program config is probably what you want. A process won't be transitioned from STARTING to RUNNING until at least "startsecs" seconds has gone by. FTR, you also might be interested in using "crashmail" script in superlance (http://pypi.python.org/pypi/superlance) which does the same thing as your script is doing, if only to look at it anyway. - C _______________________________________________ Supervisor-users mailing list [email protected] http://lists.supervisord.org/mailman/listinfo/supervisor-users
