docs(vps-xray): 定时重启配置说明;uninstall 清理 guard 与状态文件

This commit is contained in:
2026-08-06 17:13:12 +08:00
parent 9f1e293d4c
commit 34f698e5fb
3 changed files with 55 additions and 7 deletions
+5 -2
View File
@@ -84,10 +84,13 @@ fi
systemctl disable xray 2>/dev/null || true
# 每日重启 timer(旧版部署可能残留)
if [ -f /etc/systemd/system/xray-restart.timer ]; then
if [ -f /etc/systemd/system/xray-restart.timer ] \
|| [ -f /usr/local/bin/xray-restart-guard ]; then
systemctl disable --now xray-restart.timer 2>/dev/null || true
rm -f /etc/systemd/system/xray-restart.timer \
/etc/systemd/system/xray-restart.service
/etc/systemd/system/xray-restart.service \
/usr/local/bin/xray-restart-guard \
/var/lib/xray/last-restart
log "已移除每日重启 timer"
fi