更新 cns.init

This commit is contained in:
dongge 2024-04-30 12:00:13 +02:00
parent 061b4c8b1a
commit 7aaa1cc8e5

View file

@ -70,6 +70,7 @@ stop()
status | grep stopped && return 0 status | grep stopped && return 0
echo -n "Stopping cns:" echo -n "Stopping cns:"
kill `cat [cns_install_dir]/run.pid 2>/dev/null` 2>/dev/null kill `cat [cns_install_dir]/run.pid 2>/dev/null` 2>/dev/null
kill -9 `pidof cns` >/dev/null 2>&1
sleep 1 sleep 1
grep -q cns /proc/`cat [cns_install_dir]/run.pid`/comm 2>/dev/null && \ grep -q cns /proc/`cat [cns_install_dir]/run.pid`/comm 2>/dev/null && \
echo -e "\033[60G[\033[31mFAILED\033[0m]" || \ echo -e "\033[60G[\033[31mFAILED\033[0m]" || \