So the script worked. At 6:58am there was a 404 error, I received a phone call from Uptime (unfortunately), and about a minute or less later the script kicked in and restarted the server.
It just happened again some minutes ago - and the website was back only one or two minutes after I noticed it. Great script! Thank you. :-)