blob: 507249313ee1aa8057ed8dc7932deccfa900d441 [file] [log] [blame]
# Copyright (c) 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Starts a master and waits for its pidfile to become live. This was split out
# of the Makefile in order to make a flock-able unit.
set -e
if [ -f ]; then
if [ -n "$(ps -p$PID -o pid=)" ]; then
echo " has pid $PID which is still alive. aborting."
exit 2
echo 'Now running Buildbot master.'
python $SCRIPTS_DIR/common/twistd -y $TOPLEVEL_DIR/build/masters/buildbot.tac
echo 'Waiting for creation of'
while `test ! -f`; do sleep 1; done;
echo " contains new buildbot pid $PID"