This commit is contained in:
eric
2026-03-29 04:12:59 -05:00
parent e20c1a0b0b
commit 3dc82e1158
2 changed files with 14 additions and 6 deletions

View File

@@ -256,6 +256,9 @@ Restart=always
RestartSec=5
# 避免构建/依赖短暂失败时触发 systemd 默认「5 次/10s」后永久停跑表现为 live-edge 502、:8001 无监听)
StartLimitIntervalSec=0
# 首次 npm build / 冷启动较慢;过小会导致主进程在 listen 前被 SIGTERM
TimeoutStartSec=300
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target