[mythtv-users] Mythmusic crashing the frontend changing playlist

Dave dbadia at gmail.com
Tue Dec 12 00:23:36 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`


Enjoy!
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20061211/a9c1d2af/attachment.htm 


More information about the mythtv-users mailing list