Ver Fonte

update stop.sh

rainbow954 há 7 anos atrás
pai
commit
1dc0e4e6a4
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/bin/stop.sh

+ 2 - 2
src/bin/stop.sh

@@ -1,10 +1,10 @@
 #!/bin/bash
 PID=`ps -ef|grep data-acceptance.jar| grep -v grep| awk '{print $2}'`
 
-if [!-f ${PID})];then
+if [ -z ${PID} ];then
   echo "进程不存在"
 else
   kill  $PID
   echo "正在关闭进程"
   sleep 5
-fi
+fi