D132: engine.service systemd自动恢复 · 引擎崩溃5秒自动拉起
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled

This commit is contained in:
root 2026-06-15 01:41:24 +08:00
parent a13e68486b
commit ea9af2fdb7

View File

@ -0,0 +1,16 @@
[Unit]
Description=光湖驱动引擎 v2.1 · Engine
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt
ExecStart=/usr/local/bin/node /opt/engine.js 3911
Restart=always
RestartSec=5
StandardOutput=append:/var/log/engine.log
StandardError=append:/var/log/engine.error.log
[Install]
WantedBy=multi-user.target