[mythtv-commits] Ticket #12977: Improved Frontend Startup in case of connection problems
MythTV
noreply at mythtv.org
Fri Jan 20 17:12:50 UTC 2017
#12977: Improved Frontend Startup in case of connection problems
------------------------------+-----------------------------
Reporter: pbennett | Owner: pbennett
Type: Developer Task | Status: accepted
Priority: minor | Milestone: 29.0
Component: MythTV - General | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------+-----------------------------
Comment (by mdean):
Regarding DB ping (whether using mysqladmin -ping, mysql_ping, or
homegrown code), please see [5b3aaea9] and the thread at
https://lists.gt.net/mythtv/dev/284304 (especially
https://lists.gt.net/mythtv/dev/284318#284318 and
https://lists.gt.net/mythtv/dev/284319#284319 ). The current approach,
pinging the host, while not perfect (since it doesn't detect the DB
itself), was meant to be fast--especially when the user misconfigures
things. Making a user wait 3min at initial setup only to be told the
database couldn't be contacted would make initial setup even more
frustrating. Also, many first-time users tend to put the MythTV backend
port into the MySQL port box, so any test you do needs to be sure to not
crash (or cause problems--client or server side) when it hits a non-MySQL
port.
That said, once initial (interactive) configuration is done, I'm a big fan
of the just-do-it approach (i.e. don't check to make sure things still
work--instead just do what we're told and fail/shut down if it doesn't
work). That said, in this world of systemd and "shotgun start everything,
assuming order is irrelevant", I seem to be one of the few who's willing
to consider a proper system configuration and working prerequisites as a
startup requirement. (In other words, I don't mind if things change, but
wanted to mention the how we got to where we are backstory.)
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12977#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list