diff --git a/deployment/index.xml b/deployment/index.xml index f60ed4f..bdc65a0 100644 --- a/deployment/index.xml +++ b/deployment/index.xml @@ -32,7 +32,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target</code></pre> diff --git a/deployment/installation/index.html b/deployment/installation/index.html index 1a7f0ad..1e355a4 100644 --- a/deployment/installation/index.html +++ b/deployment/installation/index.html @@ -32,7 +32,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target @@ -111,7 +111,7 @@ chmod +x /usr/bin/sabot 下载 docker-compose.yml 文件, 在同目录下新建 config.toml 文件, 参考 config.example.toml 编辑配置文件.">安装与更新 | Save Any Bot +chmod +x saveany-bot ./saveany-bot 进程守护 # systemd (常规 Linux) 创建文件 /etc/systemd/system/saveany-bot.service 并写入以下内容: [Unit] Description=SaveAnyBot After=systemd-user-sessions.service [Service] Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot Restart=always [Install] WantedBy=multi-user.target 设为开机启动并启动服务: systemctl enable --now saveany-bot procd (OpenWrt) 添加开机自启动服务 创建文件 /etc/init.d/saveanybot ,参考 wrt_init 并自行修改: #!/bin/sh /etc/rc.common #This is the OpenWRT init.d script for SaveAnyBot START=99 STOP=10 description=&#34;SaveAnyBot&#34; WORKING_DIR=&#34;/mnt/mmc1-1/SaveAnyBot&#34; EXEC_PATH=&#34;$WORKING_DIR/saveany-bot&#34; start() { echo &#34;Starting SaveAnyBot...&#34; cd $WORKING_DIR $EXEC_PATH &amp; } stop() { echo &#34;Stopping SaveAnyBot...&#34; killall saveany-bot } reload() { stop start } 赋予权限: chmod +x /etc/init.d/saveanybot 然后将文件复制到 /etc/rc.d 并重命名为 S99saveanybot, 同样赋予权限: chmod +x /etc/rc.d/S99saveanybot 添加快捷指令 创建文件 /usr/bin/sabot ,参考 wrt_bin 并自行修改,注意此处文件编码仅支持 ANSI 936 . 随后赋予权限: chmod +x /usr/bin/sabot 使用: sudo sabot start|stop|restart|status|enable|disable 使用 Docker 部署 # Docker Compose # 下载 docker-compose.yml 文件, 在同目录下新建 config.toml 文件, 参考 config.example.toml 编辑配置文件.">安装与更新 | Save Any Bot

安装与更新

安装与更新 @@ -128,7 +128,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target设为开机启动并启动服务:
systemctl enable --now saveany-bot

@@ -167,6 +167,6 @@ reload() { #

向 Bot 发送 /update 指令检查更新并升级, 或者使用 CLI 命令更新:

./saveany-bot up
 

如果是 Docker 部署, 还可以使用以下命令更新:

docker pull ghcr.io/krau/saveany-bot:latest
 docker restart saveany-bot
-
\ No newline at end of file diff --git a/en/deployment/index.xml b/en/deployment/index.xml index 25b3a2b..a55e5b5 100644 --- a/en/deployment/index.xml +++ b/en/deployment/index.xml @@ -32,7 +32,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target</code></pre> diff --git a/en/deployment/installation/index.html b/en/deployment/installation/index.html index 8bf1fe6..f757703 100644 --- a/en/deployment/installation/index.html +++ b/en/deployment/installation/index.html @@ -32,7 +32,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target @@ -111,7 +111,7 @@ Usage: sudo sabot start|stop|restart|status|enable|disable Download the docker-compose.yml file, create a new config.toml file in the same directory, refer to config.example.toml to edit the configuration file.">Installation and Updates | Save Any Bot +chmod +x saveany-bot ./saveany-bot Process Monitoring # systemd (Regular Linux) Create a file /etc/systemd/system/saveany-bot.service and write the following content: [Unit] Description=SaveAnyBot After=systemd-user-sessions.service [Service] Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot Restart=always [Install] WantedBy=multi-user.target Enable startup on boot and start the service: systemctl enable --now saveany-bot procd (OpenWrt) Add Boot Autostart Service Create a file /etc/init.d/saveanybot, refer to wrt_init and modify as needed: #!/bin/sh /etc/rc.common #This is the OpenWRT init.d script for SaveAnyBot START=99 STOP=10 description=&#34;SaveAnyBot&#34; WORKING_DIR=&#34;/mnt/mmc1-1/SaveAnyBot&#34; EXEC_PATH=&#34;$WORKING_DIR/saveany-bot&#34; start() { echo &#34;Starting SaveAnyBot...&#34; cd $WORKING_DIR $EXEC_PATH &amp; } stop() { echo &#34;Stopping SaveAnyBot...&#34; killall saveany-bot } reload() { stop start } Set permissions: chmod +x /etc/init.d/saveanybot Then copy the file to /etc/rc.d and rename it to S99saveanybot, also set permissions: chmod +x /etc/rc.d/S99saveanybot Add Shortcut Commands Create a file /usr/bin/sabot, refer to wrt_bin and modify as needed. Note that the file encoding here only supports ANSI 936. Then set permissions: chmod +x /usr/bin/sabot Usage: sudo sabot start|stop|restart|status|enable|disable Deploy Using Docker # Docker Compose # Download the docker-compose.yml file, create a new config.toml file in the same directory, refer to config.example.toml to edit the configuration file.">Installation and Updates | Save Any Bot

Installation and Updates

Installation and Updates @@ -128,7 +128,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.targetEnable startup on boot and start the service:
systemctl enable --now saveany-bot

@@ -167,6 +167,6 @@ Then set permissions:
chmod +x /usr/bin/sabot<
 #

Use upgrade or up to upgrade to the latest version

./saveany-bot upgrade
 

If you deployed with Docker, use the following commands to update:

docker pull ghcr.io/krau/saveany-bot:latest
 docker restart saveany-bot
-
\ No newline at end of file diff --git a/en/index.xml b/en/index.xml index f0d1440..a91bd93 100644 --- a/en/index.xml +++ b/en/index.xml @@ -32,7 +32,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target</code></pre> diff --git a/en/sitemap.xml b/en/sitemap.xml index 4d3a151..80d722a 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -1 +1 @@ -https://sabot.unv.app/en/deployment/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/usage/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/help/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/contribute/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/categories/https://sabot.unv.app/en/deployment/configuration/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/deployment/installation/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/deployment/configuration/storages/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/tags/ \ No newline at end of file +https://sabot.unv.app/en/deployment/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/usage/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/help/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/contribute/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/categories/https://sabot.unv.app/en/deployment/configuration/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/deployment/installation/2025-08-24T14:47:13+08:00https://sabot.unv.app/en/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/deployment/configuration/storages/2025-06-16T16:30:45+08:00https://sabot.unv.app/en/tags/ \ No newline at end of file diff --git a/index.xml b/index.xml index f876fca..0223d93 100644 --- a/index.xml +++ b/index.xml @@ -32,7 +32,7 @@ After=systemd-user-sessions.service Type=simple WorkingDirectory=/yourpath/ ExecStart=/yourpath/saveany-bot -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target</code></pre> diff --git a/sitemap.xml b/sitemap.xml index 44bf1c3..ec9c1e1 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://sabot.unv.app/zh/sitemap.xml2025-08-24T14:26:47+08:00https://sabot.unv.app/en/sitemap.xml2025-06-16T16:30:45+08:00 \ No newline at end of file +https://sabot.unv.app/zh/sitemap.xml2025-08-24T14:47:13+08:00https://sabot.unv.app/en/sitemap.xml2025-08-24T14:47:13+08:00 \ No newline at end of file diff --git a/zh/sitemap.xml b/zh/sitemap.xml index c63e46a..a815d2b 100644 --- a/zh/sitemap.xml +++ b/zh/sitemap.xml @@ -1 +1 @@ -https://sabot.unv.app/deployment/2025-06-16T15:58:03+08:00https://sabot.unv.app/usage/2025-08-23T20:42:51+08:00https://sabot.unv.app/help/2025-06-16T15:58:03+08:00https://sabot.unv.app/contribute/2025-08-23T20:42:51+08:00https://sabot.unv.app/categories/https://sabot.unv.app/tags/https://sabot.unv.app/deployment/installation/2025-08-24T14:26:47+08:00https://sabot.unv.app/deployment/configuration/storages/2025-06-16T15:58:03+08:00https://sabot.unv.app/2025-08-22T10:02:44+08:00https://sabot.unv.app/deployment/configuration/2025-08-24T14:26:47+08:00 \ No newline at end of file +https://sabot.unv.app/deployment/2025-06-16T15:58:03+08:00https://sabot.unv.app/usage/2025-08-23T20:42:51+08:00https://sabot.unv.app/help/2025-06-16T15:58:03+08:00https://sabot.unv.app/contribute/2025-08-23T20:42:51+08:00https://sabot.unv.app/categories/https://sabot.unv.app/tags/https://sabot.unv.app/deployment/installation/2025-08-24T14:47:13+08:00https://sabot.unv.app/deployment/configuration/storages/2025-06-16T15:58:03+08:00https://sabot.unv.app/2025-08-22T10:02:44+08:00https://sabot.unv.app/deployment/configuration/2025-08-24T14:26:47+08:00 \ No newline at end of file