Author: Matti Picus <[email protected]> Branch: Changeset: r1005:01afb8aebf63 Date: 2016-05-12 17:30 +0200 http://bitbucket.org/pypy/buildbot/changeset/01afb8aebf63/
Log: add useful script diff --git a/restart_buildmaster_when_not_running b/restart_buildmaster_when_not_running new file mode 100755 --- /dev/null +++ b/restart_buildmaster_when_not_running @@ -0,0 +1,9 @@ +#!/bin/bash + +while ( wget -O - 'http://buildbot.pypy.org/waterfall' | grep --color=always -w "Activity building" ); do echo '*** There are running buildbots, will try again in 5 minutes. ***' && sleep 300; done + +echo "*** DONE, SHUT DOWN in 5 seconds... ***" +sleep 5 && (cd master && /home/buildmaster/vbuildbot/bin/buildbot stop) + +echo "*** BUILDBOT DOWN, bringing it back up in 30 seconds... ***" +sleep 30 && (cd master && /home/buildmaster/vbuildbot/bin/buildbot start) _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
