[MDEV-31714] Debian 50-mariadb_safe.cnf has syslog enabled - read by galera sst scripts Created: 2023-07-17  Updated: 2023-07-24  Resolved: 2023-07-24

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian
Affects Version/s: None
Fix Version/s: 11.2.1

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Daniel Black
Resolution: Fixed Votes: 0
Labels: None


 Description   

50-mariadb_safe.cnf was only ever intended to be a reference file. With mariadbd-safe falling into disuse in Debian since systemd became a service it was assumed this files wasn't used.

It is however read by galera-sst scripts. This forks off the logger process to write the output to /dev/log, which on a systemd service the journalctl is reading anyway.

It would be much more direct just to go straight to stdout/error like what would happen without this configuration.

In a1211a4eda9c7348295ce4a6fdfa8e94860e5e14 the debian 50-mariadb_safe.cnf changed its name so the sst script like mariabackup still reads only mysqld_safe.

This is a problem however in container based Galera, which doesn't have a journald or syslog listening on /dev/log.

Since MariaDB operator now has support for Galera, its important to disable this.



 Comments   
Comment by Faustin Lammler [ 2023-07-18 ]

PR: https://github.com/MariaDB/server/pull/2698

Comment by Daniel Black [ 2023-07-24 ]

Thanks to otto for review.

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