This commit is contained in:
donggg 2023-05-21 04:20:07 +00:00
parent cc96b4f7a2
commit d0f3f36798

View file

@ -69,6 +69,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 -s 15 `pgrep cns` 2>/dev/null
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]" || \