# - 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.log /var/log/mysql/*log { daily rotate 7 missingok create 640 mysql adm compress sharedscripts postrotate test -x /usr/bin/mysqladmin || exit 0 # If this fails, check debian.conf! MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf" if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then # Really no mysqld or rather a missing debian-sys-maint user? # If this occurs and is not a error please report a bug. #if ps cax | grep -q mysqld; then if killall -q -s0 -umysql mysqld; then exit 1 fi else $MYADMIN flush-logs fi endscript }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
alternatives | File | 120 B | 0644 |
|
apache2 | File | 442 B | 0644 |
|
apport | File | 126 B | 0644 |
|
apt | File | 173 B | 0644 |
|
certbot | File | 82 B | 0644 |
|
dbconfig-common | File | 107 B | 0644 |
|
dpkg | File | 112 B | 0644 |
|
lxd | File | 146 B | 0644 |
|
mysql-server | File | 845 B | 0644 |
|
ppp | File | 94 B | 0644 |
|
rsyslog | File | 501 B | 0644 |
|
tor | File | 234 B | 0644 |
|
ubuntu-advantage-tools | File | 270 B | 0644 |
|
ufw | File | 178 B | 0644 |
|
unattended-upgrades | File | 235 B | 0644 |
|