update start bash

pull/524/head
yuyu5333 2025-11-14 07:40:47 +00:00
parent aee1913d3d
commit 0ebf835006
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,9 @@ if [ -f "train_web_ui.pid" ]; then
echo "强制停止服务..."
kill -9 "$pid"
fi
echo "正在保存进程信息..."
echo "已保存到 'trainer_web/training_processes.json'"
sleep 1
echo "服务已停止"
else
echo "服务未运行,但存在PID文件,已删除"

View File

@ -1046,7 +1046,7 @@ def load_processes_info():
def handle_exit(signum, frame):
"""处理程序退出信号,保存进程信息"""
print("正在保存进程信息...")
print("正在保存进程信息... save at 'trainer_web/training_processes.json'...")
save_processes_info()
# 删除PID文件
if os.path.exists(PID_FILE):