Skip to end of metadata
Go to start of metadata

The below sh script trigger rebooting server if Google DNS does not respond

#!/bin/sh
ping -w 10 -c 1 8.8.8.8
if [ $? = 0 ]
then
        echo noreply
else
        /sbin/reboot
fi