Script to reboot Ubuntu if ping fail

Hi, It looks like this forum is not alive.
I’ll try to help revive with my question. :slight_smile:
I need a verified Linux script to reboot the server when the Internet is cut off.

Hello Ron!
Thank you for your interest in this forum.
If it is not very urgent, I will write an article on how to automatically reboot Linux if there is no Internet.

I think you already have solution for your problem, but anyways the article is ready:

1 Like

thank you
yes, I already finished my project :slight_smile:

1 Like

:+1:
There was little bug in script, I just fixed