fix: ocg_router proc_guard API适配——_LockResult无pid属性,g.pid→g.message(修复502 Bad Gateway根因:启动检查AttributeError导致服务不稳定)
This commit is contained in:
@@ -721,7 +721,7 @@ def main():
|
||||
# PID 锁
|
||||
g = guard("ocg_router")
|
||||
if not g.ok:
|
||||
log.error("ocg_router 已有实例在运行 (PID %s),退出", g.pid)
|
||||
log.error("ocg_router 已有实例在运行 (PID %s),退出", g.message)
|
||||
sys.exit(1)
|
||||
|
||||
# 初始加载
|
||||
|
||||
Reference in New Issue
Block a user