/etc/mysql/mariadb.d/50-distro-server.cnf: pid-file = /var/run/mysqld/mariadb.pid /etc/logrotate.d/mysql: postrotate [ -f /var/run/mysqld/mysqld.pid ] && /bin/kill -HUP `cat /var/run/mysqld/mysqld.pid` endscript Logrotate then fails with: error: error running shared postrotate script for '/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err ' run-parts: /etc/cron.daily/logrotate exited with return code 1
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29f98d49b8679417fe873aefb9182a43f2bafca4 commit 29f98d49b8679417fe873aefb9182a43f2bafca4 Author: Brian Evans <grknight@gentoo.org> AuthorDate: 2019-03-05 21:27:48 +0000 Commit: Brian Evans <grknight@gentoo.org> CommitDate: 2019-03-05 21:27:48 +0000 dev-db/mysql-init-scripts: Fix up pid file searching Changed how the pid file is searched for in both logrotate and init Closes: https://bugs.gentoo.org/677396 Closes: https://bugs.gentoo.org/678272 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Brian Evans <grknight@gentoo.org> dev-db/mysql-init-scripts/files/init.d-2.3 | 194 +++++++++++++++++++++ dev-db/mysql-init-scripts/files/init.d-s6-2.3 | 163 +++++++++++++++++ .../mysql-init-scripts/files/init.d-supervise-2.3 | 180 +++++++++++++++++++ .../mysql-init-scripts/files/logrotate.mysql-2.3 | 14 ++ .../mysql-init-scripts-2.3.ebuild | 67 +++++++ 5 files changed, 618 insertions(+)
Thanks, seems good :)