Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: masters/master-common-rules.mk

Issue 1863083003: Revert of Send a SIGKILL to masters after 10 seconds if they don't exit from SIGTERM (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | scripts/master/kill_pidfile.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | scripts/master/kill_pidfile.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698