about summary refs log blame commit diff stats
path: root/tools/conf/etc/logrotate.conf
blob: 896b7798df3ab557f2b0d1615147785214eb3130 (plain) (tree)




































































































































                                                       
# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
compress

olddir /var/log/old

notifempty

maxsize 5M

# some packages can drop log rotation information into 
# this directory
include /etc/logrotate.d

# few generic files to rotate
/var/log/wtmp {
    create 0644 root root
    rotate 5
}

/var/log/btmp {
    create 0600 root root
    rotate 5
}

# system-specific logs may be also be configured here.
/var/log/faillog {
    maxsize 5M
}

/var/log/lastlog {
    maxsize 5M
}

/var/log/auth {
    create 0644 root root
    rotate 5
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript
}

/var/log/cron {
    create 0644 root root
    rotate 5
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript
}

/var/log/debug {
    create 0644 root root
    rotate 5
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript
}

/var/log/kernel {
    rotate 5
    create 0644 root root
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript
}

/var/log/daemon {
    compress
    rotate 5
    create 644 root root
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript

}

/var/log/messages {
    rotate 5
    create 0644 root root
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript
}

/var/log/mail {
    create 0644 root root
    rotate 5
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript
}

/var/log/user {
    create 0644 root root
    rotate 5
    sharedscripts
    postrotate
    if [ -f /var/run/syslog-ng.pid ]; then \
    	kill -HUP `cat /var/run/syslog-ng.pid`; \
    fi;
    endscript
}