From 5019f046e8ad4806f96a747171e20bddcf874554 Mon Sep 17 00:00:00 2001 From: dongge Date: Sun, 14 Sep 2025 12:16:49 +0200 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20cns.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cns.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cns.sh b/cns.sh index d6eaf6c..5f7155a 100644 --- a/cns.sh +++ b/cns.sh @@ -6,11 +6,13 @@ #Stop cns & delete cns files. Delete() { systemctl disable cns.service - rm -f /etc/init.d/cns /lib/systemd/system/cns.service + chkconfig --del Acns + /etc/init.d/Acns disable if [ -f "${cns_install_dir:=/usr/local/cns}/cns.init" ]; then "$cns_install_dir"/cns.init stop rm -rf "$cns_install_dir" fi + rm -f /etc/init.d/cns /lib/systemd/system/cns.service /etc/rc.d/rc5.d/S99cns /etc/rc.d/S99cns /etc/rc5.d/S99cns } #Print error message and exit.