gentoo/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3
Brian Evans 29f98d49b8
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>
2019-03-05 16:27:48 -05:00

15 lines
384 B
Groff

# 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
}