diff --git a/scripts/astrbot.service b/scripts/astrbot.service index 31c13af5b..eff24b490 100644 --- a/scripts/astrbot.service +++ b/scripts/astrbot.service @@ -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