[mythtv-users] Automatically restart backend on failure? (Gentoo)
Neil Milne
neil.milne at gmail.com
Wed Nov 1 21:39:19 UTC 2006
On 01/11/06, Julian Edwards <myth at julian-edwards.com> wrote:
>
> I'm not sure why people are re-inventing the wheel when you can just
> stick a line in /etc/inittab like this:
>
> my:345:respawn:/usr/local/bin/mythbackend --logfile
> /var/log/mythtv/mythbackend.log
>
I personally use monit on gentoo. I start it from inittab. The problem
with starting the backend from inittab is that you lose the dependency
startup on things like the network, mysql etc. It's a bit more
difficult to take down the backend as well - you need to edit inittab
to prevent init from automatically respawning, even when you want to
shut the backend down for a channel scan or some other maintenance
stuff.
Monit also gives you some idea of how good the backend is at staying
up - and you get logging and alerts for free.
--
Neil Milne
More information about the mythtv-users
mailing list