2
0

stop.sh 509 B

123456789101112
  1. #!/bin/bash
  2. ./etc/init.d/srs-demo stop; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:停止SRS失败"; exit $ret; fi
  3. echo "停止SRS服务器成功"
  4. ./etc/init.d/srs-demo-19350 stop; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:停止SRS转发服务器失败"; exit $ret; fi
  5. echo "停止SRS转发服务器成功"
  6. ./etc/init.d/srs-api stop; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:停止API服务器失败"; exit $ret; fi
  7. echo "停止API服务器成功"
  8. echo "SRS系统服务均已停止"