fix(uninstall): 补齐 V2.0 架构遗漏进程,彻底清除 webhook、agent_daemon、mod_trust 等衍生驻留进程
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# ==========================================================
|
||||
# 脚本名称: uninstall.sh (IP-Sentinel 一键卸载脚本)
|
||||
# 核心功能: 清除守护进程、清理系统定时任务、删除所有程序文件
|
||||
# 脚本名称: uninstall.sh (IP-Sentinel 一键卸载脚本 V2.0)
|
||||
# 核心功能: 清除所有世代的守护进程、清理系统定时任务、删除程序文件
|
||||
# ==========================================================
|
||||
|
||||
INSTALL_DIR="/opt/ip_sentinel"
|
||||
@@ -11,11 +11,24 @@ echo "========================================================"
|
||||
echo " 🗑️ 准备卸载 IP-Sentinel (VPS IP 自动养护哨兵)"
|
||||
echo "========================================================"
|
||||
|
||||
# 1. 停止运行中的守护进程与主控模块
|
||||
echo "[1/3] 正在终止后台 Telegram 守护进程与养护任务..."
|
||||
# 1. 停止运行中的守护进程与主控模块 (涵盖 V1.0 至 V2.0 架构全量进程)
|
||||
echo "[1/3] 正在终止后台守护进程与所有养护任务..."
|
||||
|
||||
# 击杀旧版 (V1.x) 遗留进程
|
||||
pgrep -f tg_daemon.sh | xargs -r kill -9 >/dev/null 2>&1
|
||||
|
||||
# 击杀新版 (V2.x) 神经末梢守护进程
|
||||
pgrep -f agent_daemon.sh | xargs -r kill -9 >/dev/null 2>&1
|
||||
pgrep -f webhook.py | xargs -r kill -9 >/dev/null 2>&1
|
||||
|
||||
# 击杀调度引擎与更新/战报模块
|
||||
pgrep -f runner.sh | xargs -r kill -9 >/dev/null 2>&1
|
||||
pgrep -f updater.sh | xargs -r kill -9 >/dev/null 2>&1
|
||||
pgrep -f tg_report.sh | xargs -r kill -9 >/dev/null 2>&1
|
||||
|
||||
# 击杀所有具体的业务执行模块
|
||||
pgrep -f mod_google.sh | xargs -r kill -9 >/dev/null 2>&1
|
||||
pgrep -f mod_trust.sh | xargs -r kill -9 >/dev/null 2>&1
|
||||
|
||||
# 2. 清除系统定时任务 (Cron)
|
||||
echo "[2/3] 正在清理系统定时任务 (Cron)..."
|
||||
|
||||
Reference in New Issue
Block a user