From 3b09c0650de107c7bf79dcd658baf4852885c4ab Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 5 Oct 2024 22:02:53 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E5=A4=8D=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=89=A7=E8=A1=8C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index e965025..9b0ddc9 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ _✨ 服务器状态 - 客户端 ✨_ 服务器状态的客户端命令行工具 +- 跨平台支持 +- 自动上报服务器状态 +- 支持自定义标签、地域、链接等信息 + ## 💿 安装 - Linux 可使用脚本安装,带自动部署和自启动 @@ -69,40 +73,13 @@ server_status https://status.liteyuki.icu 114514 myhost run -n "MyHost" --labels ### 开机启动 -执行以下命令 - -```shell -sudo pipx ensurepath # 确保pipx路径在环境变量下 - -sudo touch /etc/systemd/system/server-status-client.service - -sudo bash -c 'cat < /etc/systemd/system/server-status-client.service -[Unit] -Description=Server Status Client -After=network-online.target - -[Service] -Type=simple -ExecStart=server-status run # 请替换为实际参数 -Restart=on-failure -RestartSec=10 - -[Install] -WantedBy=multi-user.target -EOF' - -sudo systemctl enable server-status-client -sudo systemctl start server-status-client -``` +- 安装脚本已自动添加到系统服务 ### 更新 ```shell git pull sudo systemctl restart server-status-client -# -git pull -systemctl restart server-status-client ``` ### 服务端