about summary refs log tree commit diff
path: root/test/python/server_test_case.py
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-08 15:52:36 +0000
committerPjotr <wrk@bosa.lan>2026-11-08 15:52:36 +0000
commit0769a0ea0a8654e5e50e03365545c8ccf58d6b91 (patch)
treebfdfb13eaa85c277d64ba6972577e4ca71a49eec /test/python/server_test_case.py
parentcfe873f6d60820f258a154e9c89c519687cb23c6 (diff)
downloadgenenetwork4-0769a0ea0a8654e5e50e03365545c8ccf58d6b91.tar.gz
docs: match the server by argv[0], not by a substring of its command line
The restart section added a moment ago pointed at the trap and then walked
into its other half: `nohup env … ./target/release/genenetwork4 &` leaves
an `env` wrapper whose command line also contains the binary path, so
matching `*release/genenetwork4*` finds the wrapper -- the pid file named
a process that exits while the server keeps running, and the next
`kill $(cat /tmp/gn4.pid)` did nothing at all.

Read `argv[0]` (the first NUL-terminated word) and compare it to the
binary path instead; that finds the serving process and only it. Applied
here, it is what finally moved production off the previous build.
Diffstat (limited to 'test/python/server_test_case.py')
0 files changed, 0 insertions, 0 deletions