monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Christmas Release


From: Richard Levitte
Subject: Re: [Monotone-devel] Christmas Release
Date: Fri, 30 Nov 2012 14:58:38 +0100 (CET)

In message <address@hidden> on Fri, 30 Nov 2012 14:42:17 +0100, Frédéric Praca 
<address@hidden> said:

frederic.praca> > In message <address@hidden> on Fri, 30 Nov 2012
frederic.praca> > 10:17:21 +0100, Frédéric Praca <address@hidden> 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                         address@hidden
                                        http://richard.levitte.org/

"Life is a tremendous celebration - and I'm invited!"
-- from a friend's blog, translated from Swedish



reply via email to

[Prev in Thread] Current Thread [Next in Thread]