Skip to content

Commit

Permalink
Update script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaaker authored Jan 1, 2024
1 parent 48b571c commit 07a20b3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion dump1090_status/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@

# Check services running
# Check Radarbox feeder
if systemctl is-active dump1090-fa.service
if [systemctl is-active dump1090-fa.service -ne "active"]; then
#Wall
wall "[$(date +"%d-%m-%Y %H:%M:%S")] Dump1090 stopped running, restarting services. Checked by: Method 1 - Systemctl detected dump1090 stopped"

#Log
sudo echo "[$(date +"%d-%m-%Y %H:%M:%S")] Dump1090 stopped running. Checked by: Method 1 - Systemctl detected dump1090 stopped" >> /var/log/dump1090_restart_log.txt

#Restarting Services
systemctl restart dump1090-fa.service
systemctl restart rbfeeder.service
systemctl restart fr24feed.service
systemctl restart piaware.service
systemctl restart adsbexchange-feed.service

exit 1
fi

# Check aircraft file exist
if [ ! -f /run/dump1090-fa/aircraft.json ]; then
Expand Down

0 comments on commit 07a20b3

Please sign in to comment.