File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,11 @@ PYTHON_VERSION=3.9
2
2
SYSTEM_PYTHON =python$(PYTHON_VERSION )
3
3
VENV_DIR =./venv
4
4
PIP =$(VENV_DIR ) /bin/pip
5
+ # make stop-server kills all processes named "python"
6
+ PKILL_NAME ="python"
5
7
BUILDBOT =$(VENV_DIR ) /bin/buildbot
6
8
VENV_CHECK =$(VENV_DIR ) /lib/python$(PYTHON_VERSION ) /site-packages/buildbot/master.py
9
+ USER =buildbot
7
10
LOGLINES =50
8
11
9
12
# Setup targets
@@ -61,10 +64,10 @@ stop-master: run-target
61
64
# but it never completes. The server stays forever in this state: it is
62
65
# still "running" but no longer schedules new jobs. Kill the process
63
66
# to make sure that it goes bad to a known state (don't run anymore).
64
- echo " Buildbot processes: "
65
- pgrep buildbot
67
+ echo " Buildbot processes (look for process name: $( PKILL_NAME ) ) "
68
+ pgrep -u $( USER ) $( PKILL_NAME ) || :
66
69
echo " Send SIGKILL to remaining buildbot processes (if any)"
67
- pkill -KILL buildbot
70
+ pkill -KILL -u $( USER ) $( PKILL_NAME ) || :
68
71
69
72
run-target : $(VENV_CHECK )
70
73
$(BUILDBOT ) $(TARGET ) master; tail -n$(LOGLINES ) master/twistd.log
You can’t perform that action at this time.
0 commit comments