mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04:00
Merge pull request #259 from jan666/patch-1
"stop" command - change to work on FreeBSD
This commit is contained in:
commit
54ba1bd5c6
@ -30,13 +30,13 @@ def print_header_info():
|
|||||||
|
|
||||||
def get_instance():
|
def get_instance():
|
||||||
try:
|
try:
|
||||||
return int(subprocess.check_output(["pgrep","-x","maloja"]))
|
return int(subprocess.check_output(["pgrep","-f","maloja$"]))
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_instance_supervisor():
|
def get_instance_supervisor():
|
||||||
try:
|
try:
|
||||||
return int(subprocess.check_output(["pgrep","-x","maloja_supervisor"]))
|
return int(subprocess.check_output(["pgrep","-f","maloja_supervisor"]))
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user