mirror of
https://github.com/hotyue/IP-Sentinel.git
synced 2026-07-13 00:21:22 +08:00
fix(core): 对齐架构,为 Agent 卸载脚本引入 SIGKILL 瞬间抹杀机制,防止 Systemd 卡死与遗言触发
This commit is contained in:
@@ -30,6 +30,8 @@ echo "========================================================"
|
|||||||
echo "[1/4] 正在停止并删除 Systemd 服务..."
|
echo "[1/4] 正在停止并删除 Systemd 服务..."
|
||||||
if command -v systemctl >/dev/null 2>&1; then
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
echo "💡 检测到 Systemd 环境,正在抹除 Systemd 服务单元..."
|
echo "💡 检测到 Systemd 环境,正在抹除 Systemd 服务单元..."
|
||||||
|
# [防死锁与走火修复] 先发送 SIGKILL 瞬间抹杀常驻守护进程,防止卡死或触发遗言
|
||||||
|
systemctl kill --signal=SIGKILL ip-sentinel-agent-daemon.service >/dev/null 2>&1 || true
|
||||||
systemctl disable --now ip-sentinel-runner.service ip-sentinel-runner.timer \
|
systemctl disable --now ip-sentinel-runner.service ip-sentinel-runner.timer \
|
||||||
ip-sentinel-updater.service ip-sentinel-updater.timer \
|
ip-sentinel-updater.service ip-sentinel-updater.timer \
|
||||||
ip-sentinel-report.service ip-sentinel-report.timer \
|
ip-sentinel-report.service ip-sentinel-report.timer \
|
||||||
|
|||||||
Reference in New Issue
Block a user