Despite my best efforts, the server still dies sometimes and I am in a random place trying to ssh into the server to restart it on my cell phone after customers start calling… I tried using google to track down a script that would do the following
Every 5 min execute:
sudo /etc/init.d/WowzaMediaServer status
Then it would grep for “started” and if it isn’t found would execute:
sudo /etc/init.d/WowzaMediaServer start
I am not sure how to setup the script + it is going to ask for a password to use the sudo command.
Anybody able to give me a hand? Seems like a nice script that many people should have on hand anyway.