mirror of
https://github.com/krateng/maloja.git
synced 2025-04-16 08:50:32 +03:00
Fix GH-218
This commit is contained in:
parent
b9e3cd7624
commit
22495692fb
@ -30,13 +30,13 @@ def print_header_info():
|
||||
|
||||
def get_instance():
|
||||
try:
|
||||
return int(subprocess.check_output(["pidof","maloja"]))
|
||||
return int(subprocess.check_output(["pgrep","-x","maloja"]))
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
def get_instance_supervisor():
|
||||
try:
|
||||
return int(subprocess.check_output(["pidof","maloja_supervisor"]))
|
||||
return int(subprocess.check_output(["pgrep","-x","maloja_supervisor"]))
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user