~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to support-files/drizzle-log-rotate.in

  • Committer: Andrew Hutchings
  • Date: 2011-01-24 13:13:17 UTC
  • mto: (2108.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2109.
  • Revision ID: andrew@linuxjedi.co.uk-20110124131317-f76my6mlorwnkd94
Drop most of the RPM generation stuff, it is all in pkg-drizzle project now

Show diffs side-by-side

added added

removed removed

Lines of Context:
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=@localstatedir@/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
 
@localstatedir@/mysqld.log {
22
 
        # create 600 mysql mysql
23
 
        notifempty
24
 
        daily
25
 
        rotate 3
26
 
        missingok
27
 
        compress
28
 
    postrotate
29
 
        # just if mysqld is really running
30
 
        if test -x @bindir@/mysqladmin && \
31
 
           @bindir@/mysqladmin ping &>/dev/null
32
 
        then
33
 
           @bindir@/mysqladmin flush-logs
34
 
        fi
35
 
    endscript
36
 
}