update astrbot.service

This commit is contained in:
LIghtJUNction
2026-03-18 00:21:27 +08:00
committed by GitHub
parent c1ad6f7032
commit 7eafa3a2e2

View File

@@ -8,7 +8,7 @@ Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=%h/.local/share/astrbot
ExecStart=/usr/bin/sh -c '/usr/bin/astrbot run --backend-only || { /usr/bin/astrbot init -y --backend-only && /usr/bin/astrbot run --backend-only; }'
ExecStart=/usr/bin/astrbot run --backend-only
Restart=on-failure
RestartSec=5
StandardOutput=journal