On mythbuntu, my back-end crashed unexpectedly, causing me to lose about
a day and a half of recording.

I put the following in /etc/cron.hourly/mythrestart  

----mythrestart begin----
#!/bin/bash

PID=`pgrep mythbackend`

if [ "${PID}x" == "x" ]; then
   /etc/init.d/mythtv-backend stop
   /etc/init.d/mythtv-backend start
fi
----mythrestart end----

Then do the following:

sudo chown root.root /etc/cron.hourly/mythrestart
sudo chmod 755 /etc/cron.hourly/mythrestart
 

So at most now I should only lose an hour of recorded TV instead of
potentially days.

--Rob


_______________________________________________
Fwlug mailing list
[email protected]
http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org

Reply via email to