#
# If the root user has a password you have to create a
# /root/.my.cnf configuration file with the following
# content:
#
# [mysqladmin]
# password 	= <secret> 
# user		= root
#
# where "<secret>" is the password. 
#
# ATTENTION: This /root/.my.cnf should be readable ONLY
# 	     for root !
#
/var/log/mysql.log {
	missingok
	create 600 mysql mysql
	rotate 7
	daily
	compress
	postrotate
		# just if mysqld is really running
		if test -n "`ps acx|grep mysqld`"; then
			export HOME=/root
		        /usr/bin/mysqladmin flush-logs
		fi
	endscript
}

/var/log/mysql.err {
	missingok
	create 644 root root
	rotate 7
	daily
	compress
	postrotate
		# just if mysqld is really running
		if test -n "`ps acx|grep mysqld`"; then
			export HOME=/root
		        /usr/bin/mysqladmin flush-logs
		fi
	endscript
}
