mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #02544
[Bug 609402] Re: mythtv-backend upstart config should wait for mysql
My original plan was to wait until upstart grew support to conditionally
start on jobs (only if they exist) which is supposed to hit on the next
version.
Your solution does sound like a good contingency plan though. I would be quite open to a patch. I have two recommendations for it however:
1) make sure it sleeps in between tries
2) make sure that it times out eventually (after a few minutes or so) by causing the job to exit some non zero value. No use in continuously running the job if it's eventually going to fail anyway.
** Also affects: mythtv (Ubuntu)
Importance: Undecided
Status: New
** Changed in: mythtv (Ubuntu)
Assignee: (unassigned) => a7x (a7x)
** Changed in: mythtv (Ubuntu)
Status: New => In Progress
** Changed in: mythbuntu
Status: New => Confirmed
** Changed in: mythbuntu
Status: Confirmed => Triaged
--
mythtv-backend upstart config should wait for mysql
https://bugs.launchpad.net/bugs/609402
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
Status in Mythbuntu, Ubuntu derivative focused upon MythTV: Triaged
Status in “mythtv” package in Ubuntu: In Progress
Bug description:
mythtv-backend requires mysql, so it should not start until mysql has started and it should stop when mysql is stopping.
Due to bug #608423 mysql fails to start on my machine. Because of the 'respawn' directive in /etc/init/mythtv-backend.conf, my /var/log/syslog was quickly filled with the following:
...
Jul 23 19:18:01 myth init: mythtv-backend main process (26729) terminated with status 254
Jul 23 19:18:01 myth init: mythtv-backend main process ended, respawning
Jul 23 19:18:04 myth init: mythtv-backend main process (26735) terminated with status 254
Jul 23 19:18:04 myth init: mythtv-backend main process ended, respawning
Jul 23 19:18:08 myth init: mythtv-backend main process (26741) terminated with status 254
Jul 23 19:18:08 myth init: mythtv-backend main process ended, respawning
...
and my /var/log/mythtv/mythbackend.log was filled with "Can't connect to MySQL server on 'myth' (111)" errors.
The attached patch modifies the upstart config file to wait until mysql starts before starting mythtv-backend and stop mythtv-backend when mysql is stopping.
References