D132: engine.service systemd自动恢复 · 引擎崩溃5秒自动拉起
This commit is contained in:
parent
a13e68486b
commit
ea9af2fdb7
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user