[mythtv-users] Remotely restarting mythfrontend

come se fosse antani antani at gmail.com
Mon Feb 12 13:33:37 UTC 2007


On 2/12/07, Lonnie Borntreger <myth at borntreger.com> wrote:
> On Mon, 2007-02-12 at 12:42 +0100, come se fosse antani wrote:
> > why not simply a
> >
> > #!/bin/sh
> > DISPLAY=:0
> >
> > if pidof mythfrontend
> > then
> > echo "Not starting mythfrontend... already started"
> > else
> >  mythfrontend &
> > fi
> > exit
>
> If you do this while logged in remotely, you'll have to change the
>  mythfrontend &
> line to
>  nohup mythfrontend &
> otherwise the process would die when you log out.
>

thanks for the hint. I created such script for a cron job and works flawlessy!


More information about the mythtv-users mailing list