I have a script that I use to kill and restart mythfrontend whenever a
button is pushed on the remote. It works like a charm. Just put it
in your .lircrc file and use irexec to execute the script.
Here's the script:
MYTHEXISTS=`/bin/ps -e | grep mythfrontend | grep -v grep | awk '{print $1}'`;
if [ "$MYTHEXISTS" != "" ]; then
for MYTHPROCESS in `/bin/ps -e | grep mythfrontend | grep -v
grep | awk '{print $1}'`
do
echo $MYTHPROCESS;
kill -9 $MYTHPROCESS;
done
fi
/usr/bin/mythfrontend &