summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2016-05-22 17:58:48 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2016-05-22 17:58:48 -0500
commit065af99120b96dc970d0e0e8fce60fd239b9dd2e (patch)
treed3f48d144d55b6acd80a24c2b64b432fca56a77f /net-analyzer/icinga2/files
parentwww-apps/drupal: Add 8.1.0 and 8.1.1 releases. (diff)
downloadgentoo-065af99120b96dc970d0e0e8fce60fd239b9dd2e.tar.gz
gentoo-065af99120b96dc970d0e0e8fce60fd239b9dd2e.tar.bz2
gentoo-065af99120b96dc970d0e0e8fce60fd239b9dd2e.zip
net-analyzer/icinga2: fix bug 583298 logrotate
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-analyzer/icinga2/files')
-rw-r--r--net-analyzer/icinga2/files/logrotate.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-analyzer/icinga2/files/logrotate.patch b/net-analyzer/icinga2/files/logrotate.patch
new file mode 100644
index 000000000000..93d493a20dcb
--- /dev/null
+++ b/net-analyzer/icinga2/files/logrotate.patch
@@ -0,0 +1,17 @@
+diff -ur icinga2-2.4.10/etc/logrotate.d/icinga2.cmake icinga2-2.4.10.new/etc/logrotate.d/icinga2.cmake
+--- icinga2-2.4.10/etc/logrotate.d/icinga2.cmake 2016-05-19 06:39:29.000000000 -0500
++++ icinga2-2.4.10.new/etc/logrotate.d/icinga2.cmake 2016-05-22 17:52:45.547568144 -0500
+@@ -1,4 +1,5 @@
+ @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/icinga2.log @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/debug.log {
++ su icinga icingacmd
+ daily
+ rotate 7@LOGROTATE_USE_SU@
+ compress
+@@ -12,6 +13,7 @@
+ }
+
+ @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/error.log {
++ su icinga icingacmd
+ daily
+ rotate 90@LOGROTATE_USE_SU@
+ compress