Merge pull request #259 from jan666/patch-1

"stop" command - change to work on FreeBSD
This commit is contained in:
krateng 2023-10-30 10:48:27 +01:00 committed by GitHub
commit 54ba1bd5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,13 +30,13 @@ def print_header_info():
def get_instance():
try:
return int(subprocess.check_output(["pgrep","-x","maloja"]))
return int(subprocess.check_output(["pgrep","-f","maloja$"]))
except Exception:
return None
def get_instance_supervisor():
try:
return int(subprocess.check_output(["pgrep","-x","maloja_supervisor"]))
return int(subprocess.check_output(["pgrep","-f","maloja_supervisor"]))
except Exception:
return None