From 5d2b006e971e150f2f2447a179d6070ad789b91e Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Sat, 5 Feb 2022 15:07:52 -0500 Subject: [PATCH] smarter restart_services --- scripts/restart_services.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/restart_services.sh b/scripts/restart_services.sh index 37227ac..06c6c9f 100755 --- a/scripts/restart_services.sh +++ b/scripts/restart_services.sh @@ -5,11 +5,11 @@ my_dir=/home/pi/BirdNET-Pi/scripts sudo systemctl stop birdnet_recording.service sudo rm -rf ${RECS_DIR}/$(date +%B-%Y/%d-%A)/* -sudo systemctl start birdnet_recording.service - -services=($(awk '/systemctl/ && !/php/ && !/caddy/ && !/target/ {print $3}' <(sed -e 's/--now//g' ${my_dir}/update_services.sh) | sort | uniq )) +services=($(awk '/systemctl/ && !/php/ && !/caddy/ && !/target/ && !/avahi/ {print $3}' <(sed -e 's/--now//g' ${my_dir}/update_services.sh) | sort | uniq )) for i in "${services[@]}";do sudo systemctl restart "${i}" done sudo systemctl restart extraction.timer +sudo systemctl start birdnet_recording.service +