diff --git a/jms b/jms index cd9ad396d..0c2ae8fd3 100755 --- a/jms +++ b/jms @@ -108,8 +108,7 @@ def is_running(s, unlink=True): pid_file = get_pid_file_path(s) if os.path.isfile(pid_file): - with open(pid_file, 'r') as f: - pid = get_pid(s) + pid = get_pid(s) if check_pid(pid): return True