Re: Christmas Release
Richard Levitte <[email protected]>
| Newsgroups | gmane.comp.version-control.monotone.devel |
|---|---|
| Message-ID | <[email protected]> |
In message <20121130144217.5b0bb0c4@freddy> on Fri, 30 Nov 2012 14:42:17 +0100, Frédéric Praca <[email protected]> said: frederic.praca> > In message <20121130101721.4a026d35@freddy> on Fri, 30 Nov 2012 frederic.praca> > 10:17:21 +0100, Frédéric Praca <[email protected]> said: frederic.praca> > frederic.praca> > frederic.praca> - http://buildbot.monotone.ca/ is down for ages frederic.praca> > frederic.praca> > *arrrggggllllll* cron doesn't grokk @reboot *arrrggggllllll* frederic.praca> > frederic.praca> > Does someone have a safe recipe to do the same thing, but with frederic.praca> > something that runs every minute or so (checks if a buildbot is frederic.praca> > already running, yada yada yada)? I know, it's probably cookbook, my frederic.praca> > brain just isn't geared for that kind of stuff today... frederic.praca> Well nagios could do the job but that's a little overkill. frederic.praca> Why don't you check the status by getting the webpage like this frederic.praca> frederic.praca> #! /bin/sh frederic.praca> frederic.praca> wget -q --output-document=- localhost:8010 > /dev/null frederic.praca> frederic.praca> if (test $? -ne 0) frederic.praca> then frederic.praca> echo "server out of order" frederic.praca> # and other things like re-running builbot master frederic.praca> fi frederic.praca> frederic.praca> Then put this in cron as a every 5 minutes task Thanks! -- Richard Levitte [email protected] http://richard.levitte.org/ "Life is a tremendous celebration - and I'm invited!" -- from a friend's blog, translated from Swedish