1 2 3 4 5 6 7 8 9 10 11 12
# logrotate snippet for ufw # requires app-admin/syslog-ng # copy the file into /etc/logrotate.d /var/log/ufw.log { missingok rotate 5 notifempty sharedscripts postrotate /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true endscript }