Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-22659: Create one single unified and optimal logrotate config #2312

Merged

Conversation

grooverdan
Copy link
Member

Replace mysql-log-rotate.sh and debian/...mysql-server.logrotate with one new unified and well documented version.

Name is mariadb.logrotate.in as in 10.11 branch onward we use now the 'mariadb' name, and use 'logrotate' to match the actual name of the utility.

Also automatically disable deprecated /etc/logrotate.d/mysql-server file on deb upgrades.

Reviewer: Daniel Black

Reviewer edits made:

  • Added 'su mysql mysql' to the logrotate this is more RPM friendly. This is commented on Debian
  • /var/log/mysql is the path on SuSe based distributions
  • The Jira issue number for this PR is: MDEV-MDEV-22659

Description

logrotate config was very dated and wasn't applicable to most distributions. There was also extensive mysql naming.

This was largely @ottok's work from #1556 however it needed to address RPM use cases and no change was forthcoming.

How can this PR be tested?

This now largely maps to the logrotate that Debian/Suse/Fedora/RHEL distribute so has had testing.

Replace mysql-log-rotate.sh and debian/...mysql-server.logrotate with one
new unified and well documented version.

Name is mariadb.logrotate.in as in 10.11 branch onward we use now the
'mariadb' name, and use 'logrotate' to match the actual name of the
utility.

Also automatically disable deprecated /etc/logrotate.d/mysql-server
file on deb upgrades.

Reviewer: Daniel Black

Reviewer edits made:
* Added 'su mysql mysql' to the logrotate this is more RPM friendly.
  This is commented on Debian
* /var/log/mysql is the path on SuSe based distributions
@illuusio
Copy link
Contributor

Seems very solid to me. I don't find anything to add this. Better than the old one..

@grooverdan
Copy link
Member Author

note included one packaging related postfix - d152609

@an3l an3l added the MariaDB Foundation Pull requests created by MariaDB Foundation label Nov 10, 2022
@an3l an3l added this to the 10.11 milestone Nov 10, 2022
@grooverdan grooverdan removed the MariaDB Foundation Pull requests created by MariaDB Foundation label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants