[Bug 470672] Re: mythbuntu starts frontend to fast

brjhaverkamp bert at bertenselena.net
Mon Nov 2 20:02:53 UTC 2009


On Mon, Nov 2, 2009 at 6:44 PM, Mario Limonciello <superm1 at ubuntu.com> wrote:
> Well two things.
> 1) Mysql wasn't converted to an upstart service, so there is a race
> condition with the backend and mysql.  The backend figures it out though,
Thanks for this. I didn't realize. But if the backend depends on
mysql, why not (for the moment) build in a delay untill mysql is
started?
(this snipped I added to /usr/share/mythtv/mythfrontend.sh)
delay=30
    while [ ! -e "/var/run/mysqld/mysqld.pid" ] && [ "$delay" -gt "0" ]; do
       let delay--
       sleep 1
       echo "No database yet , sleeping for $delay seconds" | tee -a
$MYTHWELCOMELOG
    done

> and just has a few failed connection attempts on every boot
> 2) You can't set dependencies on graphical userspace  things like
> mythwelcome.  In most scenarios though, gdm will start FAR later than
> mythbackend does, so it's surprising this is coming up and why I'm wondering
> if there is anything special that was done to this install to cause such a
> race condition.
>
> It's possible that this is just ungodly fast hardware too, what are the
> hardware specs?  Are you booting from something like an SSD?
I wish:-) No it is an ordinary dual core E7400 with an even more ordinary HD..
But from the logs  I see that they start about the same time.

Would it be possible to build a check for the mythbackend proces and
lirc daemon in mythfrontend.sh, like I did above with mysql?
Would that solve the race?

Bert


> On Mon, Nov 2, 2009 at 10:04, WeatherGod <ben.v.root at gmail.com> wrote:
>
>> I am not exactly familiar with how Ubuntu's Upstart works, but couldn't
>> you just set the mysql and mythtv-backend to start before some of the
>> other services?
>>
>> --
>> mythbuntu starts frontend to fast
>> https://bugs.launchpad.net/bugs/470672
>> You received this bug notification because you are a member of Mythbuntu
>> Bug Team, which is subscribed to mythtv in ubuntu.
>>
>
>
> --
> Mario Limonciello
> superm1 at gmail.com
>
> --
> mythbuntu starts frontend to fast
> https://bugs.launchpad.net/bugs/470672
> You received this bug notification because you are a direct subscriber
> of the bug.
>


-- 
-----------------------------------------------------
38 is NOT a random number!!!!

-- 
mythbuntu starts frontend to fast
https://bugs.launchpad.net/bugs/470672
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


More information about the universe-bugs mailing list