[mythtv-users] backend monitoring scripts?

Leo Kliger lkliger at bigpond.net.au
Sat Dec 9 23:01:14 UTC 2006

> Try using /etc/inittab.  <man inittab> will give you some hints.  After 
> updating the inittab file, execute <telinit q> or reboot the system.  My 
> inittab has these entries, which will re-start any of the processes if 
> they exit, and they are launched in run levels 2, 3, 4 & 5 (Ubuntu 
> system).  Make sure the process does not run in the background, or it 
> will be continually re-launched and cause all sorts of trouble.
> #
> # MythTV stuff
> mtvb:2345:respawn:su - mythtv -c "mythbackend -l /var/log/mythtv/backend"
> mtvl:2345:respawn:su - mythtv -c "mythlcdserver -l 
> /var/log/mythtv/lcdserver"
> mtvd:2345:respawn:su - mythtv -c "mtd -n"

Thanks Rob, I had considered something like this, but sometimes you do
want to shutdown mythtv for one thing or another.... 
setting it to respawn in all run level could make a hard thing to do;)

More information about the mythtv-users mailing list