Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.1.36, 10.2.13, 10.3.10
-
Linux - Debian and Ubuntu
Description
Latest packages still install /etc/init.d/mysql scripts, this can lead to race conditions in the service.
It has been observed the service starting with init if the systemd service is disabled.
Attachments
Issue Links
- causes
-
MDEV-20789 Installation fails on non-systemd Linux
-
- Closed
-
- is duplicated by
-
MDEV-10797 RPM includes init script and a systemd unit
-
- Closed
-
- relates to
-
MDEV-19706 RPM no longer installs init script on systemd systems, but preun script still tries to erase it
-
- Closed
-
otto thanks for looking deeply into this!
I agree with most your solution proposal.
But I believe this one is not totally correct:
> systemctl aliases are good, they increase compatibility with mysql - skipping them to "fix" this bug is the wrong tradeoff
Aliases is not the best solution to increase compatibility with mysql. Instead, "shipping a (static) symlink in the package is the second best thing you can do to align the sysv init script name and the service name, The best you can do (obviously) is to use the same name for the sysv init script and the service file.", I am quoting M. Biebl, see: https://github.com/MariaDB/server/pull/1172#discussion_r305863850