Quantcast
Channel: Flightradar24 Forum
Viewing all articles
Browse latest Browse all 5745

Port monitoring

$
0
0
Team... I'm running latest PI image on my two Raspberry Pi's. There is a memory leak issue from my Wifi driver (long story.. won't bore you...) which I think is causing dump1090 to fall over.

I'd like to set up a port monitor, unfortunately I'm useless with BASH... am I going about this the right way? This isn't the actual code obviously, but I'm hoping someone with a bit of knowledge can help me out... 8082 is my http port for dump1090.


Code:

if netstat -an | grep "8082" = null; then
    echo "$date : Port not up - rebooting." >> /var/log/portmon.log
    sudo reboot now
else

fi


Viewing all articles
Browse latest Browse all 5745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>