mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
73f1c655ad
These changes update the contents and behaviour of current packages to match the current packaging in Debian official repos. Keep mtr test scope small. Updating maintainer scripts also required regenerating the translations. Rules based on modern dh_* buildtools. Update control file with new Debian conventions: - Provide virtual-mysql-* virtual packages - Recommends perl modules instead of Depends
19 lines
720 B
Text
19 lines
720 B
Text
# - I put everything in one block and added sharedscripts, so that mysql gets
|
|
# flush-logs'd only once.
|
|
# Else the binary logs would automatically increase by n times every day.
|
|
# - The error log is obsolete, messages go to syslog now.
|
|
/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 -oP "pid-file=\K[^$]+"` ]; then
|
|
# If this fails, check debian.conf!
|
|
mysqladmin --defaults-file=/etc/mysql/debian.cnf flush-logs
|
|
fi
|
|
endscript
|
|
}
|