birdnet_analysis doesn't restart the socket on config

change
This commit is contained in:
mcguirepr89
2022-02-06 11:45:39 -05:00
parent d22cb246f3
commit 67b0796a81
+16 -2
View File
@@ -22,9 +22,23 @@ if ! diff ${LAST_RUN} ${THIS_RUN};then
echo "The birdnet.conf file has changed"
echo "Reloading services"
cat ${THIS_RUN} > ${LAST_RUN}
until restart_services.sh;do
sleep 1
sudo systemctl stop birdnet_recording.service
sudo rm -rf ${RECS_DIR}/$(date +%B-%Y/%d-%A)/*
services=(web_terminal.service
spectrogram_viewer.service
pushed_notifications.service
livestream.service
icecast2.service
extraction.timer
extraction.service
chart_viewer.service
birdnet_recording.service
birdnet_log.service)
for i in "${services[@]}";do
sudo systemctl restart "${i}"
done
fi
INCLUDE_LIST="/home/pi/BirdNET-Pi/include_species_list.txt"