view common/logrotate-httpd @ 332:7198cc4397d8

Remove custom LogWatch scripts There's no point in maintaining them manually when the OS should (in theory) keep the scripts up-to-date with the services We were getting more errors on CentOS 8 for having out of date custom scripts than for having OS-supplied ones
author IBBoard <dev@ibboard.co.uk>
date Sun, 15 Mar 2020 16:51:11 +0000
parents 956e484adc12
children
line wrap: on
line source

/var/log/apache/*log {
    monthly
    rotate 3
    missingok
    compress
    notifempty
    sharedscripts
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}