mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
update astrbot.service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user