We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719c90e commit 5ec6575Copy full SHA for 5ec6575
src/static/static/home/yi-hack/script/service.sh
@@ -132,7 +132,11 @@ start_rtsp()
132
fi
133
134
$RTSP_DAEMON $RTSP_RES $CODEC_LOW $CODEC_HIGH $RTSP_AUDIO_COMPRESSION $RTSP_PORT $RTSP_USER $RTSP_PASSWORD $NR_LEVEL $B_ONVIF_AUDIO_BC >/dev/null &
135
- (sleep 30; $YI_HACK_PREFIX/script/wd_rtsp.sh >/dev/null) &
+
136
+ WD_COUNT=$(ps | grep wd_rtsp.sh | grep -v grep | grep -c ^)
137
+ if [ $WD_COUNT -eq 0 ]; then
138
+ (sleep 30; $YI_HACK_PREFIX/script/wd_rtsp.sh >/dev/null) &
139
+ fi
140
}
141
142
stop_rtsp()
0 commit comments