From 29f98d49b8679417fe873aefb9182a43f2bafca4 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Tue, 5 Mar 2019 16:27:48 -0500 Subject: 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 --- dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 (limited to 'dev-db/mysql-init-scripts/files/logrotate.mysql-2.3') diff --git a/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 b/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 new file mode 100644 index 000000000000..6a3b9eeb2ca9 --- /dev/null +++ b/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 @@ -0,0 +1,14 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err { +monthly +create 660 mysql mysql +notifempty +size 5M +sharedscripts +missingok +postrotate + /bin/kill -HUP $(cat $(my_print_defaults server mysqld mariadb | grep 'pid[_-]file' | cut -d = -f 2)) +endscript +} -- cgit v1.2.3