1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 20:01:56 +00:00
srs/trunk/scripts/stop.sh

13 lines
509 B
Bash
Raw Normal View History

2013-12-23 02:40:11 +00:00
#!/bin/bash
2014-04-07 07:26:21 +00:00
./etc/init.d/srs-demo stop; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误停止SRS失败"; exit $ret; fi
echo "停止SRS服务器成功"
2013-12-23 02:40:11 +00:00
2014-04-07 07:26:21 +00:00
./etc/init.d/srs-demo-19350 stop; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误停止SRS转发服务器失败"; exit $ret; fi
echo "停止SRS转发服务器成功"
2013-12-23 02:40:11 +00:00
2014-04-07 07:26:21 +00:00
./etc/init.d/srs-api stop; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误停止API服务器失败"; exit $ret; fi
echo "停止API服务器成功"
2013-12-23 02:40:11 +00:00
echo "SRS系统服务均已停止"