fixing restart_services

This commit is contained in:
mcguirepr89
2022-02-16 07:19:26 -05:00
parent 4863a2eef7
commit 64295bece0
5 changed files with 15 additions and 10 deletions
+3 -1
View File
@@ -320,7 +320,9 @@ run_birdnet() {
run_analysis "${1}"
}
date
until grep 5050 <(netstat -tulpn 2>&1) &> /dev/null 2>&1;do
sleep 1
done
if [ $(find ${RECS_DIR} -maxdepth 1 -name '*wav' | wc -l) -gt 0 ];then
run_birdnet "${RECS_DIR}"