socketStop.sh 178 B

12345678
  1. #!/bin/bash
  2. basepath=$(cd `dirname $0`; pwd)
  3. cd $basepath
  4. pidlist=`ps -ef | grep swoole:socket | grep -v grep |awk '{print $2}'`
  5. kill -9 $pidlist
  6. echo 'Socket service stop...'