priceTaskStop.sh 177 B

123456
  1. #!/bin/bash
  2. basepath=$(cd `dirname $0`; pwd)
  3. cd $basepath
  4. pidlist=`ps -ef | grep price:task | grep -v grep |awk '{print $2}'`
  5. kill -9 $pidlist
  6. echo '停止价格服务成功...'