diff --git a/maloja/__main__.py b/maloja/__main__.py index 5c4692f..f5f425d 100644 --- a/maloja/__main__.py +++ b/maloja/__main__.py @@ -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