[MDEV-28759] Deployment of /etc/init.d/mysql causes issues Created: 2022-06-07  Updated: 2022-06-28  Resolved: 2022-06-28

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.3
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Michaël de groot Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-10797 RPM includes init script and a system... Closed

 Description   

Hi,

I have found that recent versions of MariaDB 10.3 deploy a /etc/init.d/mysql start script. On AlmaLinux 8, this script is automatically imported as a systemd service called "mysql". On earlier versions, the 'mysql' service was aliased to 'mariadb'.

This causes two issues:

1: The script starts the 'mysql' service, not the MariaDB service. Therefore stopping the mariadb service does not work after starting the mysql service. This might sound trivial, but automated management runs into issues this way when someone manually intervenes.

2: The start script starts mariadb with log-error to a file, instead of to syslog. This is non-default behaviour.

I propose to remove the /etc/init.d/mysql script as I don't see how it adds value.

Thanks,
Michaël



 Comments   
Comment by Sergei Golubchik [ 2022-06-28 ]

Fixed in 10.4+, please, upgrade

Generated at Thu Feb 08 10:03:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.