/var/log/mariadb!!!VER!!!/*.log { create 640 mysql mysql notifempty daily rotate 7 missingok compress postrotate # just if mysqld is really running if test -x /opt/rh/rh-mariadb!!!VER!!!/root/usr/bin/mysqladmin && \ /usr/bin/scl enable rh-mariadb!!!VER!!! -- /opt/rh/rh-mariadb!!!VER!!!/root/usr/bin/mysqladmin --socket=!!!SOCKET!!! ping &>/dev/null then /usr/bin/scl enable rh-mariadb!!!VER!!! -- /opt/rh/rh-mariadb!!!VER!!!/root/usr/bin/mysqladmin --socket=!!!SOCKET!!! --local flush-error-log \ flush-engine-log flush-general-log flush-slow-log fi endscript }