~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to support-files/mysql-log-rotate.sh

  • Committer: bk at mysql
  • Date: 2000-07-31 19:29:14 UTC
  • Revision ID: sp1r-bk@work.mysql.com-20000731192914-08846
Import changeset

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This logname is set in mysql.server.sh that ends up in /etc/rc.d/init.d/mysql
 
2
#
 
3
# If the root user has a password you have to create a
 
4
# /root/.my.cnf configuration file with the following
 
5
# content:
 
6
#
 
7
# [mysqladmin]
 
8
# password = <secret> 
 
9
# user= root
 
10
#
 
11
# where "<secret>" is the password. 
 
12
#
 
13
# ATTENTION: This /root/.my.cnf should be readable ONLY
 
14
# for root !
 
15
 
 
16
@localstatedir@/mysqld.log {
 
17
        # create 600 mysql mysql
 
18
        notifempty
 
19
        daily
 
20
        rotate 3
 
21
        missingok
 
22
        compress
 
23
    postrotate
 
24
        # just if mysqld is really running
 
25
        if test -n "`ps acx|grep mysqld`"; then
 
26
                @bindir@/mysqladmin flush-logs
 
27
        fi
 
28
    endscript
 
29
}