docs(vps-xray): 定时重启配置说明;uninstall 清理 guard 与状态文件
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user