All pastes #681208 Raw Edit

Anonymous

public text v1 · immutable
#681208 ·published 2007-09-04 17:27 UTC
rendered paste body
apache conf
/export/log/apache/*/*.log  {
        compress
        size=50M
        # create 640 root adm
        create 660 root nobody
        sharedscripts
        postrotate
                /etc/init.d/apache reload > /dev/null
        endscript
}

general conf
# 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
compresscmd /usr/bin/bzip2
compressoptions -z9

nodelaycompress

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

# no packages own wtmp, or btmp -- we'll rotate them here
/export/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/export/log/btmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be configured here