smeserver-mysql/root/etc/logrotate.d/mariadb-sme

18 lines
368 B
Plaintext
Raw Normal View History

/var/log/mariadb/*.log {
create 640 mysql mysql
notifempty
daily
rotate 3
missingok
compress
postrotate
# just if mysqld is really running
if test -x /usr/bin/mysqladmin && \
/usr/bin/mysqladmin ping &>/dev/null
then
/usr/bin/mysqladmin flush-logs
fi
endscript
}