From d0f3f36798a5aac0aebbcdbcedcd99aca3a43b9b Mon Sep 17 00:00:00 2001 From: donggg <771281703@qq.com> Date: Sun, 21 May 2023 04:20:07 +0000 Subject: [PATCH] aa --- cns.init | 1 + 1 file changed, 1 insertion(+) diff --git a/cns.init b/cns.init index 7223adf..b2cc272 100644 --- a/cns.init +++ b/cns.init @@ -69,6 +69,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 -s 15 `pgrep cns` 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]" || \