Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
-
None
-
RHEL7
Description
Our SystemD service file contains an "Alias=mysql.service" entry, so that things like
systemctl stop mysql
|
still work when using "mysql" instead of "mariadb".
We also still install a "mysql" SysV/LSB init script in /etc/init.d.
Now the problem is: the "mysql.service" alias only exists when the "mariadb" service is enabled, when it is disabled the mysql.service symlinks are removed.
So when the "mariadb" service is enabled systemctl start mysql is an alias for systemctl start mariadb, when the "mariadb" service is disabled it will fall back to the old SysV script in /etc/init.d/mysql, which still gets installed, but behaves differently than the SystemD service (eg. still uses mysqld_safe).
In my opinion the symlink from mariadb.service to mysql.service should be created permanently by the RPM install scriptlet, instead of relying on an Alias= entry in the service file.
The alias only being available at some times is already confusing, and in combination with the still distributed SysV init script by the same base name it really becomes harmful.
Attachments
Issue Links
- is blocked by
-
MDEV-10797 RPM includes init script and a systemd unit
-
- Closed
-