1
# - I put everything in one block and added sharedscripts, so that mysql gets
2
# flush-logs'd only once.
3
# Else the binary logs would automatically increase by n times every day.
4
# - The error log is obsolete, messages go to syslog now.
5
/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log {
13
test -x /usr/bin/mysqladmin || exit 0
15
# If this fails, check debian.conf!
16
export HOME=/etc/mysql/my.cnf
17
MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
18
if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then
19
# Really no mysqld or rather a missing debian-sys-maint user?
20
# If this occurs and is not a error please report a bug.
21
if ps cax | grep -q mysqld; then