File path.patch of Package ServerStatus-Rust

diff --git a/config.toml b/config.toml
index da4cfb5..705fb43 100644
--- a/config.toml
+++ b/config.toml
@@ -55,7 +55,7 @@ group_gc = 30
 # 修正一键部署,请自行替换 ssr.rs 为你的域名,
 # server_url = "https://ssr.rs/report"
 # stat_client 默认安装的路径
-workspace = "/opt/ServerStatus"
+workspace = "/var/lib/serverstatus"
 
 # 不开启告警,可忽略后面配置,或者删除不需的通知方式
 # 告警间隔默认为30s
diff --git a/systemd/stat_client.service b/systemd/stat_client.service
index 9a5945a..a1035da 100644
--- a/systemd/stat_client.service
+++ b/systemd/stat_client.service
@@ -3,12 +3,12 @@ Description=ServerStatus-Rust Client
 After=network.target
 
 [Service]
-User=root
-Group=root
+# User=root
+# Group=root
 Environment="RUST_BACKTRACE=1"
-WorkingDirectory=/opt/ServerStatus
-# EnvironmentFile=/opt/ServerStatus/.env
-ExecStart=/opt/ServerStatus/stat_client -a "http://127.0.0.1:8080/report" -u h1 -p p1
+WorkingDirectory=/var/lib/serverstatus
+# EnvironmentFile=/etc/serverstatus/.env
+ExecStart=/usr/bin/stat_client -a "http://127.0.0.1:8080/report" -u h1 -p p1
 ExecReload=/bin/kill -HUP $MAINPID
 Restart=on-failure
 
diff --git a/systemd/stat_server.service b/systemd/stat_server.service
index d22c124..c29e97c 100644
--- a/systemd/stat_server.service
+++ b/systemd/stat_server.service
@@ -6,8 +6,8 @@ After=network.target
 #User=nobody
 #Group=nobody
 Environment="RUST_BACKTRACE=1"
-WorkingDirectory=/opt/ServerStatus
-ExecStart=/opt/ServerStatus/stat_server -c /opt/ServerStatus/config.toml
+WorkingDirectory=/var/lib/serverstatus
+ExecStart=/usr/bin/stat_server -c /etc/serverstatus/config.toml
 ExecReload=/bin/kill -HUP $MAINPID
 Restart=on-failure
 
openSUSE Build Service is sponsored by