From 09c467e56d84bcd179f30bc93ef7558daefb5a61 Mon Sep 17 00:00:00 2001 From: Yuzhiran Dev Date: Mon, 1 Jun 2026 12:56:02 +0800 Subject: [PATCH] =?UTF-8?q?ops(systemd):=20=E6=B7=BB=E5=8A=A0=20systemd=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=EF=BC=8C=E8=87=AA=E5=8A=A8=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E5=B4=A9=E6=BA=83=E8=BF=9B=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建 yzr-platform.service(Restart=always,崩溃后10秒恢复) - 更新 AGENTS.md 命令文档 - 替换原来的 setsid/nohup 启动方式 --- AGENTS.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index bc628d9..09b5f2b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,7 +11,14 @@ ## Commands ```bash -# Start server (with detach to survive shell timeout) +# Start/stop/restart server (systemd service, auto-restart on failure) +systemctl start yzr-platform.service # 启动 +systemctl stop yzr-platform.service # 停止 +systemctl restart yzr-platform.service # 重启 +systemctl status yzr-platform.service # 查看状态 +journalctl -u yzr-platform.service -n 50 --no-pager # 查看日志 + +# Fallback: start without systemd (用于调试) cd /root/openclaw-workspace/projects/yu-zhi-ran setsid ./start-platform.sh 8001