| OLD | NEW |
| 1 # -*- makefile -*- | 1 # -*- makefile -*- |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # This should be included by a makefile which lives in a buildmaster/buildslave | 6 # This should be included by a makefile which lives in a buildmaster/buildslave |
| 7 # directory (next to the buildbot.tac file). That including makefile *must* | 7 # directory (next to the buildbot.tac file). That including makefile *must* |
| 8 # define MASTERPATH. | 8 # define MASTERPATH. |
| 9 | 9 |
| 10 # The 'start' and 'stop' targets start and stop the buildbot master. | 10 # The 'start' and 'stop' targets start and stop the buildbot master. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 ifndef NO_REVISION_AUDIT | 84 ifndef NO_REVISION_AUDIT |
| 85 @($(INFRA_RUNPY) infra.tools.send_monitoring_event \ | 85 @($(INFRA_RUNPY) infra.tools.send_monitoring_event \ |
| 86 --service-event-type=STOP \ | 86 --service-event-type=STOP \ |
| 87 --event-mon-run-type=prod \ | 87 --event-mon-run-type=prod \ |
| 88 --event-mon-service-name \ | 88 --event-mon-service-name \ |
| 89 buildbot/master/$(MASTERPATH) \ | 89 buildbot/master/$(MASTERPATH) \ |
| 90 || echo 'Running send_monitoring_event failed, skipping sending events' \ | 90 || echo 'Running send_monitoring_event failed, skipping sending events' \ |
| 91 ) 2>&1 | tee -a actions.log | 91 ) 2>&1 | tee -a actions.log |
| 92 endif | 92 endif |
| 93 | 93 |
| 94 » $(SCRIPTS_DIR)/master/kill_pidfile.sh twistd.pid | 94 » if `test -f twistd.pid`; then kill -TERM -$$(ps h -o pgid= $$(cat twistd
.pid) | awk '{print $$1}'); fi; |
| 95 | 95 |
| 96 kill: notify printstep | 96 kill: notify printstep |
| 97 if `test -f twistd.pid`; then kill -KILL -$$(ps h -o pgid= $$(cat twistd
.pid) | awk '{print $$1}'); fi; | 97 if `test -f twistd.pid`; then kill -KILL -$$(ps h -o pgid= $$(cat twistd
.pid) | awk '{print $$1}'); fi; |
| 98 | 98 |
| 99 reconfig: printstep | 99 reconfig: printstep |
| 100 kill -HUP `cat twistd.pid` | 100 kill -HUP `cat twistd.pid` |
| 101 | 101 |
| 102 no-new-builds: notify printstep | 102 no-new-builds: notify printstep |
| 103 kill -USR1 `cat twistd.pid` | 103 kill -USR1 `cat twistd.pid` |
| 104 | 104 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 131 PYTHONPATH=$(PYTHONPATH) python buildbot upgrade-master . | 131 PYTHONPATH=$(PYTHONPATH) python buildbot upgrade-master . |
| 132 | 132 |
| 133 # This target is only known to be useful on 0.8.x masters. | 133 # This target is only known to be useful on 0.8.x masters. |
| 134 bootstrap: printstep | 134 bootstrap: printstep |
| 135 @[ -e '.dbconfig' ] || [ -e 'state.sqlite' ] || \ | 135 @[ -e '.dbconfig' ] || [ -e 'state.sqlite' ] || \ |
| 136 PYTHONPATH=$(PYTHONPATH) python $(SCRIPTS_DIR)/tools/state_create.py \ | 136 PYTHONPATH=$(PYTHONPATH) python $(SCRIPTS_DIR)/tools/state_create.py \ |
| 137 --restore --db='state.sqlite' --txt '../state-template.txt' | 137 --restore --db='state.sqlite' --txt '../state-template.txt' |
| 138 | 138 |
| 139 setup: | 139 setup: |
| 140 @echo export PYTHONPATH=$(PYTHONPATH) | 140 @echo export PYTHONPATH=$(PYTHONPATH) |
| OLD | NEW |