Skip to content

Set new debian runtime dir - #5646

Open
lvoytek wants to merge 1 commit into
MariaDB:mainfrom
lvoytek:set-new-debian-runtime-dir
Open

Set new debian runtime dir#5646
lvoytek wants to merge 1 commit into
MariaDB:mainfrom
lvoytek:set-new-debian-runtime-dir

Conversation

@lvoytek

@lvoytek lvoytek commented Sep 8, 2026

Copy link
Copy Markdown

Similar to #5059, it would be nice to move away from /run/mysqld to /run/mariadb as the directory to contain MariaDB's socket and pid files.

I noticed the duckdb code also prefers /run/mysqld, and would be happy to include the swap for that here too if that seems reasonable.

@ottok

ottok commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This suggestion makes sense to me and I am in favor of merging this on main and having it in the next MariaDB release. Considering various other things that have already been renamed mysql -> mariadb doing this too is logical and I don't foresee any regressions with it, as /run is anyway a transient path.

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Sep 9, 2026

@gkodinov gkodinov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! This is a preliminary review.

FWIW, "mysqld" refers to the MySQL Daemon (mysqld binary). The equivalent of that for MariaDB is mariadbd. Not mariadb.

Also, please consider merging the 4 commits with a message compliant to coding_standards.md.

And also merging the whole thing into the extended MDEV-40964 as suggested.

Move mariadbd's runtime data directory in Debian from /run/mysqld to
/run/mariadbd.
@lvoytek
lvoytek force-pushed the set-new-debian-runtime-dir branch from 3f6a38e to af729b3 Compare September 9, 2026 20:59
@lvoytek

lvoytek commented Sep 9, 2026

Copy link
Copy Markdown
Author

Reduced to 1 commit and moved to /run/mariadbd. The folder makes sense to me, I just swapped it to /run/mariadb originally to match the RPM setting INSTALL_RUNDATADIR_RPM. I'll copy this over to #5059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants