gentoo/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3
Thomas Deutschmann cda4995e82
dev-db/mysql-init-scripts: rev bump
- Move acct-* dependencies to RDEPEND to support binary packages.
  Note: According to devmanual there will be a problem once emerge
        will merge RDEPEND after the actual package.

- Handle the case when option is defined multiple times.

Closes: https://bugs.gentoo.org/693000
Closes: https://bugs.gentoo.org/686378
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
2019-08-28 16:43:21 +02:00

18 lines
453 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
pidfile=$(my_print_defaults server mysqld mariadb | grep 'pid[_-]file' | tail -n 1 | cut -d = -f 2)
if [ -s "${pidfile}" ] ; then
/bin/kill -HUP $(cat "${pidfile}")
fi
endscript
}