From 7eafa3a2e2bfd1a248a6a66ba03e37ab1e7f0f59 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Wed, 18 Mar 2026 00:21:27 +0800 Subject: [PATCH 1/5] update astrbot.service --- scripts/astrbot.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 9877abc472e53162f41ada84fbec3720f7a234f1 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Wed, 18 Mar 2026 00:22:21 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20cmd=5Finit.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/cli/commands/cmd_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/cli/commands/cmd_init.py b/astrbot/cli/commands/cmd_init.py index d1ab060a3..ca464a63a 100644 --- a/astrbot/cli/commands/cmd_init.py +++ b/astrbot/cli/commands/cmd_init.py @@ -22,7 +22,7 @@ Wants=network-online.target [Service] Type=simple 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/astrbot run --backend-only Restart=on-failure RestartSec=5 StandardOutput=journal From 87b50a5fd561c6e8311ebeb1f65a9519353efa0e Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Wed, 18 Mar 2026 00:34:26 +0800 Subject: [PATCH 3/5] fix/ astrbot.service, update path --- scripts/astrbot.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/astrbot.service b/scripts/astrbot.service index eff24b490..4649e4e20 100644 --- a/scripts/astrbot.service +++ b/scripts/astrbot.service @@ -7,7 +7,7 @@ Wants=network-online.target [Service] Type=simple -WorkingDirectory=%h/.local/share/astrbot +WorkingDirectory=%h/.astrbot ExecStart=/usr/bin/astrbot run --backend-only Restart=on-failure RestartSec=5 From 73517ec2a555d7e16adf4dcf5be90adbfada9dcb Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Wed, 18 Mar 2026 00:35:29 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20cmd=5Finit.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/cli/commands/cmd_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/cli/commands/cmd_init.py b/astrbot/cli/commands/cmd_init.py index ca464a63a..c7fb33f4d 100644 --- a/astrbot/cli/commands/cmd_init.py +++ b/astrbot/cli/commands/cmd_init.py @@ -21,7 +21,7 @@ Wants=network-online.target [Service] Type=simple -WorkingDirectory=%h/.local/share/astrbot +WorkingDirectory=%h/.astrbot ExecStart=/usr/bin/astrbot run --backend-only Restart=on-failure RestartSec=5 From 29464604840112c629fdf6ddf49a874cef5bc2c5 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Wed, 18 Mar 2026 01:22:43 +0800 Subject: [PATCH 5/5] update astrbot.service --- scripts/astrbot.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/astrbot.service b/scripts/astrbot.service index 4649e4e20..1dbc06239 100644 --- a/scripts/astrbot.service +++ b/scripts/astrbot.service @@ -17,4 +17,4 @@ SyslogIdentifier=astrbot-%u Environment=PYTHONUNBUFFERED=1 [Install] -WantedBy=default.target +WantedBy=multi-user.target