Re: Christmas Release

Frédéric Praca <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <20121130144217.5b0bb0c4@freddy>
> In message <20121130101721.4a026d35@freddy> on Fri, 30 Nov 2012
> 10:17:21 +0100, Frédéric Praca <[email protected]> said:
> 
> frederic.praca> - http://buildbot.monotone.ca/ is down for ages
> 
> *arrrggggllllll* cron doesn't grokk @reboot *arrrggggllllll*
> 
> Does someone have a safe recipe to do the same thing, but with
> something that runs every minute or so (checks if a buildbot is
> already running, yada yada yada)?  I know, it's probably cookbook, my
> brain just isn't geared for that kind of stuff today...
Well nagios could do the job but that's a little overkill.
Why don't you check the status by getting the webpage like this

#! /bin/sh

wget -q --output-document=- localhost:8010 > /dev/null

if (test $? -ne 0)
then
    echo "server out of order"
    # and other things like re-running builbot master
fi
 
Then put this in cron as a every 5 minutes task

> Cheers,
> Richard
Fred 



-- 
Ce que l'on concit bien s'énonce clairement,
Et les mots pour le dire arrivent aisément.
	-+- Nicolas Boileau, Art poétique -+-

_______________________________________________
Monotone-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.