winlin

fix bug of stop script

@@ -23,11 +23,11 @@ pids=`ps aux|grep python|grep research|grep "api-server"|awk '{print $2}'`; for @@ -23,11 +23,11 @@ pids=`ps aux|grep python|grep research|grep "api-server"|awk '{print $2}'`; for
23 # step 6: publish demo live stream 23 # step 6: publish demo live stream
24 echo "停止FFMPEG推送demo流(播放器上12路演示)" 24 echo "停止FFMPEG推送demo流(播放器上12路演示)"
25 ps aux|grep scripts|grep "ffmpeg.demo.sh" 25 ps aux|grep scripts|grep "ffmpeg.demo.sh"
26 -pids=`ps aux|grep scripts|grep "/ffmpeg.demo.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done 26 +pids=`ps aux|grep scripts|grep "/_ffmpeg.demo.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done
27 27
28 # step 7: publish players live stream 28 # step 7: publish players live stream
29 echo "停止FFMPEG推送players流(播放器上演示用)" 29 echo "停止FFMPEG推送players流(播放器上演示用)"
30 ps aux|grep scripts|grep "ffmpeg.players.sh" 30 ps aux|grep scripts|grep "ffmpeg.players.sh"
31 -pids=`ps aux|grep scripts|grep "/ffmpeg.players.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done 31 +pids=`ps aux|grep scripts|grep "/_ffmpeg.players.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done
32 32
33 echo "SRS系统服务均已停止" 33 echo "SRS系统服务均已停止"