Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log {
- daily
- rotate 7
- missingok
- create 640 mysql adm
- compress
- sharedscripts
- postrotate
- test -x /usr/bin/mysqladmin || exit 0
- if [ -f `my_print_defaults --mysqld | grep -m 1 -oP "pid-file=\K.+$"` ]; then
- # If this fails, check debian.conf!
- mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \
- flush-engine-log flush-general-log flush-slow-log
- fi
- endscript
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement