I see the same problems on one of my clients systems. On my own system this bug is not present.
restarting gdm makes irexec also starting. I have confirmed that this is due to a timing issue between gdm and lirc in upstart.
gdm and /usr/share/mythbuntu/session.sh are started before lircd is running.
I have added the following to the start of session.sh. This cures at least the symptom:
BTW, the same problem exists for /usr/share/mythtv/mythfrontend.sh
echo $LOGENTRY "Are mysql, mythbackend and lirc runnning" | tee -a $LOGFILE
delay=30
while [ ! "$(pidof mysqld)" ] && [ "$delay" -gt "0" ]; do delay=$((delay-1))
sleep 1
echo $LOGENTRY No mysqld yet. Delay: $delay | tee -a $LOGFILE
done
if [ "$(pidof mysqld)" ]; then
echo $LOGENTRY mysqld started. pid is $(pidof mysqld) | tee -a $LOGFILE
fi
while [ -z "$(pidof mythbackend)" ] && [ "$delay" -gt "0" ]; do delay=$((delay-1))
sleep 1
echo $LOGENTRY No mythbackend yet. Delay: $delay | tee -a $LOGFILE
done
if [ "$(pidof mythbackend)" ]; then
echo $LOGENTRY mythbackend started. pid is $(pidof mythbackend) | tee -a $LOGFILE
fi
while [ ! "$(pidof lircd)" ] && [ "$delay" -gt "0" ]; do delay=$((delay-1))
sleep 1
echo $LOGENTRY No lircd yet. Delay: $delay | tee -a $LOGFILE
done
if [ "$(pidof lircd)" ]; then
echo $LOGENTRY lircd started. pid is $(pidof lircd) | tee -a $LOGFILE
fi
I see the same problems on one of my clients systems. On my own system this bug is not present. mythbuntu/ session. sh are started before lircd is running.
restarting gdm makes irexec also starting. I have confirmed that this is due to a timing issue between gdm and lirc in upstart.
gdm and /usr/share/
I have added the following to the start of session.sh. This cures at least the symptom:
BTW, the same problem exists for /usr/share/ mythtv/ mythfrontend. sh
LOGFILE= "/var/log/ winebox. log"
LOGENTRY="$(date +"%b %d %T") Session.sh:"
echo $LOGENTRY "Are mysql, mythbackend and lirc runnning" | tee -a $LOGFILE
delay=$ ((delay- 1))
delay=$ ((delay- 1))
delay=$ ((delay- 1))
delay=30
while [ ! "$(pidof mysqld)" ] && [ "$delay" -gt "0" ]; do
sleep 1
echo $LOGENTRY No mysqld yet. Delay: $delay | tee -a $LOGFILE
done
if [ "$(pidof mysqld)" ]; then
echo $LOGENTRY mysqld started. pid is $(pidof mysqld) | tee -a $LOGFILE
fi
while [ -z "$(pidof mythbackend)" ] && [ "$delay" -gt "0" ]; do
sleep 1
echo $LOGENTRY No mythbackend yet. Delay: $delay | tee -a $LOGFILE
done
if [ "$(pidof mythbackend)" ]; then
echo $LOGENTRY mythbackend started. pid is $(pidof mythbackend) | tee -a $LOGFILE
fi
while [ ! "$(pidof lircd)" ] && [ "$delay" -gt "0" ]; do
sleep 1
echo $LOGENTRY No lircd yet. Delay: $delay | tee -a $LOGFILE
done
if [ "$(pidof lircd)" ]; then
echo $LOGENTRY lircd started. pid is $(pidof lircd) | tee -a $LOGFILE
fi