Subversion Repositories configs

Rev

Rev 4 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# This logname can be set in /etc/my.cnf
2
# by setting the variable "err-log"
3
# in the [safe_mysqld] section as follows:
4
#
5
# [safe_mysqld]
6
# err-log=/var/log/mysqld.log
7
#
8
# If the root user has a password you have to create a
9
# /root/.my.cnf configuration file with the following
10
# content:
11
#
12
# [mysqladmin]
13
# password = <secret>
14
# user= root
15
#
16
# where "<secret>" is the password.
17
#
18
# ATTENTION: This /root/.my.cnf should be readable ONLY
19
# for root !
20
 
21
# Then, un-comment the following lines to enable rotation of mysql's log file:
22
 
158 - 23
/var/log/mysqld.log {
24
        create 640 mysql mysql
25
        notifempty
26
	daily
27
        rotate 3
28
        missingok
29
        compress
30
    postrotate
31
	# just if mysqld is really running
32
	if test -x /usr/bin/mysqladmin && \
33
	   /usr/bin/mysqladmin ping &>/dev/null
34
	then
35
	   /usr/bin/mysqladmin flush-logs
36
	fi
37
    endscript
38
}