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:
Eric Seppanen
2021-05-03 23:32:06 -07:00
parent aa64391265
commit e6a0987182

View File

@@ -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