[mythtv-users] Mythmusic crashing the frontend changing playlist

David Fishburn fishburn at ianywhere.com
Tue Dec 12 04:13:42 UTC 2006


 
> 
> On 12/7/06, David Fishburn <fishburn at ianywhere.com> wrote:
> > I am happy to do this as well.  First time user, how do you get a 
> > stack trace and where do you submit it?
>  See http://www.mythtv.org/docs/mythtv-HOWTO-22.html#ss22.2 
> 
> >Sounds like an excellent workaround. 
> >Can you supply:
> >1.  Your entry in your lircrc
> >2.  If it calls a shell script, the contents of the shell script
> 
> begin
> remote = grayHauppauge
> prog = irexec
> button = Power
> repeat=1
> config=/opt/scripts/restart-frontend.sh >> 
> /var/log/mythtv/restart.log 2>&1 end
> 
> restart-frontend.sh:
> #!/bin/bash
> 
> num=$RANDOM
> let "num2=$num%5"
> sleep $num2
> 
> MYTHEXISTS=`/bin/ps -e | grep mythfrontend | grep -v grep | 
> awk '{print $1}'`; 
> 
> if [ "$MYTHEXISTS" == "" ]; then
> echo restart
> /opt/scripts/mythfrontv.sh &
> else
> echo already running, button ignored
> fi
> renice -10 `/sbin/pidof mythfrontend` 

Thanks Dave.

It looks like it makes one more shell script call here though:
> /opt/scripts/mythfrontv.sh &

Do you have the source for that one as well.

Dave



More information about the mythtv-users mailing list