diff --git a/00base/05kibana.sh b/00base/05kibana.sh index 144ab08..feb3b38 100644 --- a/00base/05kibana.sh +++ b/00base/05kibana.sh @@ -27,8 +27,8 @@ stopServer() { if [ -z $pid ];then echo "$serverName 未运行" else - echo -e "$echoPrefix ps -ef | grep 'DappName=./../node/bin/node ./../src/cli/dist' | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" - ps -ef | grep "DappName=./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}' | xargs kill + echo -e "$echoPrefix ps -ef | grep './../node/bin/node ./../src/cli/dist' | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" + ps -ef | grep "./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}' | xargs kill echo "$serverName 已停止!" fi } @@ -42,7 +42,7 @@ restartServer() { startServer } -pid=`ps -ef | grep "DappName=./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}'` +pid=`ps -ef | grep "./../node/bin/node ./../src/cli/dist" | grep -v 'grep' | awk '{print $2}'` # 操作参数: restart start stop kill if [ "$cmd" == "restart" ];then restartServer $pid