mirror of https://github.com/jumpserver/jumpserver
is_running()里的打开pid文件的操作已经在get_pid()中执行过了,不需要再次执行 (#2335)
parent
4bf0dfcf7b
commit
131e588d82
1
jms
1
jms
|
@ -108,7 +108,6 @@ def is_running(s, unlink=True):
|
||||||
pid_file = get_pid_file_path(s)
|
pid_file = get_pid_file_path(s)
|
||||||
|
|
||||||
if os.path.isfile(pid_file):
|
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):
|
if check_pid(pid):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue