@@ -366,7 +366,7 @@ class SocketServer extends Command
if(function_exists('exec')){
exec('pid=$(lsof -F p -i:'.$port.' | cut -b 2-) && pkill -9 $pid');
}
-
+
echo "socket stop...\n";
$date = date('Y-m-d H:i:s');
$this->info("【{$date}】Socket:停止运行服务");
@@ -0,0 +1,6 @@
+#!/bin/bash
+basepath=$(cd `dirname $0`; pwd)
+cd $basepath
+pidlist=`ps -ef | grep swoole:task | grep -v grep |awk '{print $2}'`
+kill -9 $pidlist
+echo '停止服务成功...'
@@ -1,6 +0,0 @@
-#!/bin/bash
-basepath=$(cd `dirname $0`; pwd)
-cd $basepath
-pidlist=`ps -ef | grep swoole | grep -v grep |awk '{print $2}'`
-kill -9 $pidlist
-echo '停止服务成功...'
@@ -1,8 +1,6 @@
#!/bin/bash
basepath=$(cd `dirname $0`; pwd)
cd $basepath
-#pidlist=`ps -ef | grep socket | grep -v grep |awk '{print $2}'`
-#kill -9 $pidlist
nohup php ../artisan swoole:socket start >/dev/null 2>&1 &
echo 'Socket service start...'
@@ -0,0 +1,8 @@
+pidlist=`ps -ef | grep swoole:socket | grep -v grep |awk '{print $2}'`
+echo 'Socket service stop...'
@@ -1,8 +1,8 @@
kill -9 $pidlist
nohup php ../artisan swoole:task start >/dev/null 2>&1 &
-echo 'order settle runing ...'
+echo 'swoole task runing ...'
+pidlist=`ps -ef | grep wallet:task | grep -v grep |awk '{print $2}'`
+nohup php ../artisan wallet:task start >/dev/null 2>&1 &
+echo 'wallet task runing ...'