From 787b2606ca6d55665a44d3e81a5352dc68b2add6 Mon Sep 17 00:00:00 2001 From: dongge Date: Mon, 15 Sep 2025 06:22:37 +0200 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20cns.init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cns.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cns.init b/cns.init index 83365f6..fb0de39 100644 --- a/cns.init +++ b/cns.init @@ -70,7 +70,7 @@ stop() status | grep stopped && return 0 echo -n "Stopping cns:" kill `cat [cns_install_dir]/run.pid 2>/dev/null` 2>/dev/null - kill -9 `pidof cns` >/dev/null 2>&1 + kill -9 $(pgrep -f "./cns -json") 2>/dev/null sleep 1 grep -q cns /proc/`cat [cns_install_dir]/run.pid`/comm 2>/dev/null && \ echo -e "\033[60G[\033[31mFAILED\033[0m]" || \