/etc/logrotate.d/syslog-ng (1)

From RaySoft
# ------------------------------------------------------------------------------
# logrotate.d/syslog-ng
# =====================
#
# Project   Gentoo 4 Shuttle DS57Ux
# Scope     Gentoo
# Copyright (C) 2022 by RaySoft, Zurich, Switzerland
# License   GNU General Public License (GPL) 2.0
#           https://www.gnu.org/licenses/gpl2.txt
#
# ------------------------------------------------------------------------------

'/var/log/dhcpd.log' '/var/log/kern.log' '/var/log/mail.log' {
    size 10M
    missingok
    sharedscripts
    postrotate
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
    endscript
}

'/var/log/cron.log' '/var/log/iptables.log' '/var/log/named.log' '/var/log/messages' {
    size 100M
    missingok
    sharedscripts
    postrotate
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
    endscript
}

# ------------------------------------------------------------------------------