chore: update astrbot.service configuration
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
|
# user service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=AstrBot Service
|
Description=AstrBot Service
|
||||||
|
Documentation=https://github.com/AstrBotDevs/AstrBot
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
@@ -9,6 +11,9 @@ WorkingDirectory=%h/.local/share/astrbot
|
|||||||
ExecStart=/usr/bin/sh -c '/usr/bin/astrbot run || { /usr/bin/astrbot init && /usr/bin/astrbot run; }'
|
ExecStart=/usr/bin/sh -c '/usr/bin/astrbot run || { /usr/bin/astrbot init && /usr/bin/astrbot run; }'
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
SyslogIdentifier=astrbot-%u
|
||||||
Environment=PYTHONUNBUFFERED=1
|
Environment=PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in New Issue
Block a user