26 lines
562 B
Desktop File
26 lines
562 B
Desktop File
[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
|