Comment 8 for bug 352077

Revision history for this message
Tim (leprasmurf) wrote :

I applied the patch, and my issue was recurring. I upgraded all packages, and still it recurred. Perhaps I'm experiencing a separate issue, but my fix was a simple script and to try and change all calls from mythfrontend.real to mythfrontend.real.sh.

#!/bin/bash

MYTHPID=`pidof mythfrontend.real`

echo $MYTHPID

if [ -z "$MYTHPID" ]
then
 /usr/bin/mythfrontend.real
elif [[ "$MYTHPID" =~ " " ]]
then
 echo "multiple instances running";
 kill `pidof mythfrontend.real|awk '{print $2}'`
else
 echo "There is already an instance of Mythfrontend running.";
fi