auto-save 2026-04-19 21:06 (+6, ~4)
This commit is contained in:
25
deploy/sandbox-orchestrator.service
Normal file
25
deploy/sandbox-orchestrator.service
Normal file
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Lobe Sandbox Orchestrator
|
||||
After=network-online.target incus.service
|
||||
Wants=network-online.target
|
||||
Requires=incus.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/opt/lobe-sandbox/orchestrator
|
||||
EnvironmentFile=/etc/lobe-sandbox/orchestrator.env
|
||||
ExecStart=/usr/local/bin/bun run src/index.ts
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
# 日志
|
||||
StandardOutput=append:/var/log/lobe-sandbox-orchestrator.log
|
||||
StandardError=append:/var/log/lobe-sandbox-orchestrator.log
|
||||
|
||||
# 资源限额
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user