|
@@ -18,7 +18,7 @@ fi
|
|
if [ $lost_rate -eq 0 ]
|
|
if [ $lost_rate -eq 0 ]
|
|
then
|
|
then
|
|
echo "rtsp ok"
|
|
echo "rtsp ok"
|
|
- ps -ef | grep "birdy" | grep -v "grep"
|
|
|
|
|
|
+ ps -ef | grep "gsd" | grep -v "grep"
|
|
if [ $? -eq 1 ]
|
|
if [ $? -eq 1 ]
|
|
then
|
|
then
|
|
echo "Rtsp服务恢复,重启服务! $date" >> /opt/datas/log/network/check_rtsp.log
|
|
echo "Rtsp服务恢复,重启服务! $date" >> /opt/datas/log/network/check_rtsp.log
|
|
@@ -30,7 +30,7 @@ then
|
|
elif [ $lost_rate -le 100 ]
|
|
elif [ $lost_rate -le 100 ]
|
|
then
|
|
then
|
|
echo "rtsp error"
|
|
echo "rtsp error"
|
|
- ps -ef | grep "birdy" | grep -v "grep"
|
|
|
|
|
|
+ ps -ef | grep "gsd" | grep -v "grep"
|
|
if [ $? -eq 1 ]
|
|
if [ $? -eq 1 ]
|
|
then
|
|
then
|
|
echo "rtsp服务异常,等待服务恢复 $date" >> /opt/datas/log/network/check_rtsp.log
|
|
echo "rtsp服务异常,等待服务恢复 $date" >> /opt/datas/log/network/check_rtsp.log
|