← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 1408651] Re: Needs systemd unit or sysv init script, fix if-up.d script

 

Hey Mario!

1) I did not copy that bit indeed; *if* mysql startup is racy, then any
dependency of mysql would be affected by that, and we don't want to copy
that snippet (or have the bug) in all of its dependencies. So if this is
still an issue, this should be fixed in mysql's init.d script IMHO. At
some point mysql should start supporting socket activation and get a
systemd unit, then all the explicit ordering/dependencies/waiting loops
won't be necessary any more.

2) /etc/default/locale is automatically exported to all systemd units,
so this isn't necessary. Other environment files can be read with
EnvironmentFile= (see man systemd.exec), but that's not necessary here.
Note that just exporting $LANG is insufficient: Users can have different
locales for different LC_* categories, i. e. they might choose to have
numbers, monetary, date etc. format for their home country, but still
chose to have English messages. So in principle this should be fixed in
the upstart job too, but as we plan to switch to systemd this or next
cycle at the latest, it's probably not worth it any more.

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in Ubuntu.
https://bugs.launchpad.net/bugs/1408651

Title:
  Needs systemd unit or sysv init script, fix if-up.d script

Status in mythtv package in Ubuntu:
  Fix Released

Bug description:
  mythtv-backend only ships an upstart job. With
  https://blueprints.launchpad.net/ubuntu/+spec/core-1411-systemd-
  migration it needs an init.d script or a systemd script to also work
  under systemd.

  On top of that, /etc/network/if-up.d/mythtv-backend.if-up.d does

    stop mythtv-backend || true
    start mythtv-backend || true

  which is upstart specific. It must use "invoke-rc.d mythrv-backend
  restart" instead, which works for all init systems.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/1408651/+subscriptions


References