Comment 3 for bug 1408651

Revision history for this message
Martin Pitt (pitti) wrote :

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.