[omd-commits] OMD Git: omd: thruk/gearman: added logrotate configs

git version control git at mathias-kettner.de
Thu Apr 28 23:58:22 CEST 2011


Module:   omd
Branch:   master
Commit:   cac199be29e11b9dbc2163423d1b32d0551c988b
URL:      http://omdistro.org/projects/omd/repository/revisions/cac199be29e11b9dbc2163423d1b32d0551c988b

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Thu Apr 28 23:56:23 2011 +0200
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Thu Apr 28 23:56:23 2011 +0200

thruk/gearman: added logrotate configs

---

 .../mod-gearman/skel/etc/logrotate.d/mod-gearman   |   11 +++++++++++
 packages/thruk/skel/etc/logrotate.d/thruk          |    8 ++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/packages/mod-gearman/skel/etc/logrotate.d/mod-gearman b/packages/mod-gearman/skel/etc/logrotate.d/mod-gearman
new file mode 100644
index 0000000..ff9b8e6
--- /dev/null
+++ b/packages/mod-gearman/skel/etc/logrotate.d/mod-gearman
@@ -0,0 +1,11 @@
+###ROOT###/var/log/gearman/*.log {
+	missingok
+	rotate 52
+	compress
+	delaycompress
+	notifempty
+	create 640 ###SITE### ###SITE### 
+	postrotate
+		###ROOT###/bin/omd reload gearman_worker > /dev/null
+	endscript
+}
diff --git a/packages/thruk/skel/etc/logrotate.d/thruk b/packages/thruk/skel/etc/logrotate.d/thruk
new file mode 100644
index 0000000..f06a48f
--- /dev/null
+++ b/packages/thruk/skel/etc/logrotate.d/thruk
@@ -0,0 +1,8 @@
+###ROOT###/var/log/thruk.log {
+	missingok
+	rotate 52
+	compress
+	delaycompress
+	notifempty
+	create 640 ###SITE### ###SITE### 
+}



More information about the omd-commits mailing list