diff options
| author | Brian Evans <grknight@gentoo.org> | 2019-03-05 16:27:48 -0500 |
|---|---|---|
| committer | Brian Evans <grknight@gentoo.org> | 2019-03-05 16:27:48 -0500 |
| commit | 29f98d49b8679417fe873aefb9182a43f2bafca4 (patch) | |
| tree | 89b55e04ab10ebc0e6c8b5c2176ab972b90f7086 /dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 | |
| parent | e66b5cbd4f461955b5bb803443634612de4e4c2d (diff) | |
| download | gentoo-29f98d49b8679417fe873aefb9182a43f2bafca4.tar.gz gentoo-29f98d49b8679417fe873aefb9182a43f2bafca4.tar.bz2 gentoo-29f98d49b8679417fe873aefb9182a43f2bafca4.zip | |
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>
Diffstat (limited to 'dev-db/mysql-init-scripts/files/logrotate.mysql-2.3')
| -rw-r--r-- | dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 | 14 |
1 files changed, 14 insertions, 0 deletions
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 +} |
