[Pkg-nagios-changes] [pkg-mod-gearman] 07/48: rotate neb logs with copytruncate (fixes #44)
Stig Sandbeck Mathisen
ssm at debian.org
Sun Nov 24 22:38:08 UTC 2013
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository pkg-mod-gearman.
commit 4d614117f14361ce651dc2f347638e7ee023e645
Author: Sven Nierlein <sven at nierlein.de>
Date: Sun Aug 11 12:06:39 2013 +0200
rotate neb logs with copytruncate (fixes #44)
---
Makefile.am | 4 ++--
etc/{mod_gearman_worker_logrotate => mod_gearman_logrotate} | 8 +++++++-
support/mod_gearman.spec | 2 +-
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 558257b..5ec4daf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -249,13 +249,13 @@ install-data-local: install-local-state-dir $(install_epnfiles)
install-config:
$(install_sh_PROGRAM) etc/mod_gearman_neb.conf $(DESTDIR)$(sysconfdir)/mod_gearman/mod_gearman_neb.conf
$(install_sh_PROGRAM) etc/mod_gearman_worker.conf $(DESTDIR)$(sysconfdir)/mod_gearman/mod_gearman_worker.conf
- $(install_sh_PROGRAM) etc/mod_gearman_worker_logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/mod_gearman_worker
+ $(install_sh_PROGRAM) etc/mod_gearman_worker $(DESTDIR)$(sysconfdir)/logrotate.d/mod_gearman
@echo "################################################################"
@echo ""
@echo " configuration:"
@echo " neb module: $(DESTDIR)$(sysconfdir)/mod_gearman/mod_gearman_neb.conf"
@echo " worker: $(DESTDIR)$(sysconfdir)/mod_gearman/mod_gearman_worker.conf"
- @echo " logrotate.d: $(DESTDIR)$(sysconfdir)/logrotate.d/mod_gearman_worker"
+ @echo " logrotate.d: $(DESTDIR)$(sysconfdir)/logrotate.d/mod_gearman"
@echo ""
@echo "################################################################"
diff --git a/etc/mod_gearman_worker_logrotate b/etc/mod_gearman_logrotate
similarity index 53%
rename from etc/mod_gearman_worker_logrotate
rename to etc/mod_gearman_logrotate
index cc6e9bf..d15f44b 100644
--- a/etc/mod_gearman_worker_logrotate
+++ b/etc/mod_gearman_logrotate
@@ -1,4 +1,4 @@
-/var/log/mod_gearman/*log {
+/var/log/mod_gearman/mod_gearman_worker.log {
missingok
notifempty
sharedscripts
@@ -6,3 +6,9 @@
/etc/init.d/mod_gearman_worker reload > /dev/null 2>/dev/null || true
endscript
}
+
+/var/log/mod_gearman/mod_gearman_neb.log {
+ missingok
+ notifempty
+ copytruncate
+}
diff --git a/support/mod_gearman.spec b/support/mod_gearman.spec
index 3230636..5aad7ac 100644
--- a/support/mod_gearman.spec
+++ b/support/mod_gearman.spec
@@ -71,7 +71,7 @@ exit 0
%attr(755,root,root) %{_initrddir}/mod_gearman_worker
%config(noreplace) %{_sysconfdir}/mod_gearman/mod_gearman_neb.conf
%config(noreplace) %{_sysconfdir}/mod_gearman/mod_gearman_worker.conf
-%config(noreplace) %{_sysconfdir}/logrotate.d/mod_gearman_worker
+%config(noreplace) %{_sysconfdir}/logrotate.d/mod_gearman
%{_datadir}/mod_gearman/standalone_worker.conf
%{_datadir}/mod_gearman/shared.conf
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-mod-gearman
More information about the Pkg-nagios-changes
mailing list