[mythtv-users] Fedora, ceton, systemd, and mythbackend
Gary Buhrmaster
gary.buhrmaster at gmail.com
Mon Jan 26 03:39:02 UTC 2015
On Mon, Jan 26, 2015 at 3:18 AM, Rich Freeman
<r-mythtv at thefreemanclan.net> wrote:
.....
> Your network management software (not systemd, unless systemd-networkd
> IS your network management software) decides when
> network-online.target is reached. That might be configurable.
Some distros provide a "systemd-networkd-wait-online" and/or a
"NetworkManager-wait-online" service which, if enabled, enforce
some dependencies. Your distro (and systemd release) will vary.
> The other issue I was struggling with was poor dependencies in
> mythbackend units, and the poor design of the mysql units in use in
> most places. Often mythbackend would fail due to mysql not being up.
I recall seeing a discussion where mysql (mariadb) is marked
ready before it listens on some sockets. This was generally
agreed to be a mysql issue, but various hacks (such as yours)
were proposed until a longer term fix was integrated. Since
mariadb (in latest Fedora, have not checked legacy releases)
use type=simple, changing that to be type=notify and a
sd_notify(0, "READY=1") call at the appropriate place
in the mariadb code path (when sockets have been opened)
might be a better (long term) fix. I have not followed the
mariadb dev lists to know if such fixes are already in place.
More information about the mythtv-users
mailing list