summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-09-03 12:17:52 +0000
committerPeter Volkov <pva@gentoo.org>2011-09-03 12:17:52 +0000
commit21889453a138e0bf395172784f294fcffb4f35f6 (patch)
tree6ce5fa687523d2e75d290d621d0fcdfccc424aa1 /net-firewall/ufw/files/syslog-ng/ufw.logrotate
parentDepend on split libreoffice-l10n package instead of installing the languages ... (diff)
downloadhistorical-21889453a138e0bf395172784f294fcffb4f35f6.tar.gz
historical-21889453a138e0bf395172784f294fcffb4f35f6.tar.bz2
historical-21889453a138e0bf395172784f294fcffb4f35f6.zip
Add example syslog configurations for rsyslog and syslog-ng, bug #380461, thank Emmanuel Andry for report and Sławomir Nizio for this job.
Package-Manager: portage-2.1.10.11/cvs/Linux x86_64
Diffstat (limited to 'net-firewall/ufw/files/syslog-ng/ufw.logrotate')
-rw-r--r--net-firewall/ufw/files/syslog-ng/ufw.logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/net-firewall/ufw/files/syslog-ng/ufw.logrotate b/net-firewall/ufw/files/syslog-ng/ufw.logrotate
new file mode 100644
index 000000000000..5080aa1bfa38
--- /dev/null
+++ b/net-firewall/ufw/files/syslog-ng/ufw.logrotate
@@ -0,0 +1,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
+}