[mythtvnz] Auto start with Gentoo

Nick Rout mythtvnz@lists.linuxnut.co.nz
Thu, 16 Feb 2006 11:05:55 +1300


On Thu, 16 Feb 2006 09:56:52 +1300
Steve Hodge wrote:

> On 2/16/06, Corrin Lakeland <lakeland@go.org.nz> wrote:
> > On 16/02/2006, at 9:41 AM, Steve Hodge wrote:
> >
> > > On 2/15/06, Nick Rout <nick@rout.co.nz> wrote:
> > >> gentlemen, read the output of the myth 0.19 ebuild :-)
> > >>
> > >> pkg_postinst() {
> > >>         einfo "Want MythFrontend to alway run? Run the following:"
> > >>         echo " #crontab -e -u mythtv"
> > >>         einfo "And add the following:"
> > >>         echo "* * * * * /usr/bin/runmythfe &"
> > >>         echo
> > >
> > > What if you occassionally want to log in as another user?
> >
> > In KDE, you log in as myth, exit from the front end and then choose
> > 'switch user'.
> >
> > I would imagine Gnome has something similar?
> 
> I'm talking specifically about that cron job - it's going to restart
> the frontend as soon as you exit, isn't it?
> 
> Steve

yes I guess so, no doubt this is designed for a dedicated machine! On my
myth box I generally log in via ssh if I want to do something as another
user.

the runmythfe script is very short and capable of adaptation:

#!/bin/sh

if ! pgrep mythfrontend >& /dev/null ; then
        DISPLAY=":0.0" mythfrontend 2&> /dev/null &
fi

I have seen people run mythfrontend out of inittab with respawn, even
harder to kill LOL

-- 
Nick Rout <nick@rout.co.nz>