socket.sh 233 B

123456789
  1. #!/bin/bash
  2. basepath=$(cd `dirname $0`; pwd)
  3. cd $basepath
  4. #pidlist=`ps -ef | grep socket | grep -v grep |awk '{print $2}'`
  5. #kill -9 $pidlist
  6. nohup php ../artisan swoole:socket start >/dev/null 2>&1 &
  7. echo 'Socket service start...'