1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

update the stop/start script

This commit is contained in:
winlin 2013-12-27 10:11:29 +08:00
parent 51686b91d2
commit 6bba081485
2 changed files with 6 additions and 2 deletions

View file

@ -11,7 +11,9 @@ pids=`ps aux|grep srs|grep "./objs"|grep "srs.19350.conf"|awk '{print $2}'`; for
# step 4(optinal): start nginx for HLS
echo "停止NGINXHLS服务"
ps aux|grep nginx|grep process
pids=`ps aux|grep nginx|grep process|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; sudo kill -s SIGKILL $pid; done
if [[ -f ./objs/nginx/logs/nginx.pid ]]; then
pids=`cat ./objs/nginx/logs/nginx.pid`; for pid in $pids; do echo "结束现有进程:$pid"; sudo kill -s SIGTERM $pid; done
fi
# step 5(optinal): start http hooks for srs callback
echo "停止API服务器"