[mythtv-users] Auto-start mythfrontend
Preston Crow
pc-mythtv at crowcastle.net
Wed Jan 7 11:38:08 EST 2004
I figured out a very simple way of auto-starting the frontend.
Ideally, we want it to restart automatically if it dies, and that's
exactly the sort of thing that init is there for. So I put the
following in my /etc/inittab:
c7:45:respawn:/bin/su mythtv -l -c /usr/X11R6/bin/xinit
/usr/bin/mythfrontend
(That's one line, though it's broken up by my mailer.)
The only other change was changing the default runlevel from 3 to 4 near
the top of the same file. I found that I needed the '-l' option to get
my path set up correctly. By passing a parameter to xinit, it ignores
the .xinitrc file, so you don't even need to set that up (or it can be
different for a manual login).
--PC
More information about the mythtv-users
mailing list