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