mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
python fixtures: enable "zenith pageserver stop"
Replaces "killall pageserver", which doesn't work if you don't have the psmisc package installed.
This commit is contained in:
@@ -109,13 +109,8 @@ class ZenithPageserver:
|
||||
self.running = True
|
||||
|
||||
def stop(self):
|
||||
# FIXME: this is a todo!() in the zenith cli code
|
||||
if self.running:
|
||||
try:
|
||||
subprocess.run(['killall', 'pageserver'])
|
||||
except FileNotFoundError:
|
||||
print(
|
||||
'WARNING: Failed to terminate pageserver, "killall" not found', file=sys.stderr)
|
||||
self.zenith_cli.run(['pageserver', 'stop'])
|
||||
self.running = True
|
||||
|
||||
|
||||
@zenfixture
|
||||
|
||||
Reference in New Issue
Block a user