[omd-commits] OMD Git: omd: merge-crontabs added

git version control git at mathias-kettner.de
Thu Dec 23 09:03:11 CET 2010


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

Author: Joerg Linge <pitchfork at pnp4nagios.org>
Date:   Sun Nov 14 17:09:13 2010 +0100

merge-crontabs added

---

 packages/maintenance/merge-crontabs              |   21 +++++++++++++++++++++
 packages/maintenance/skel.permissions            |    1 +
 packages/maintenance/skel/etc/logrotate.d/apache |   12 ++++++++++++
 3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/packages/maintenance/merge-crontabs b/packages/maintenance/merge-crontabs
new file mode 100755
index 0000000..388d881
--- /dev/null
+++ b/packages/maintenance/merge-crontabs
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+# This script is part of OMD
+# Joerg Linge 2010
+#
+import sys
+
+sys.stdout.write("""#
+# Do not edit this file. It will be recreated each time OMD 
+# is started or reloaded. 
+# 
+# ------------------------------------------------------------
+""")
+
+for fn in sys.argv[1:]:
+    lineno = 0
+    sys.stdout.write("# %s\n" % (fn))
+    for line in file(fn):
+	lineno += 1
+	ls = line.strip()
+	sys.stdout.write(line)
+    sys.stdout.write("# ------------------------------------------------------------\n")
diff --git a/packages/maintenance/skel.permissions b/packages/maintenance/skel.permissions
new file mode 100644
index 0000000..326600e
--- /dev/null
+++ b/packages/maintenance/skel.permissions
@@ -0,0 +1 @@
+etc/init.d/crontab 0755
diff --git a/packages/maintenance/skel/etc/logrotate.d/apache b/packages/maintenance/skel/etc/logrotate.d/apache
new file mode 100644
index 0000000..53e2286
--- /dev/null
+++ b/packages/maintenance/skel/etc/logrotate.d/apache
@@ -0,0 +1,12 @@
+###ROOT###/var/log/apache/*_log {
+	missingok
+	rotate 52
+	compress
+	delaycompress
+	notifempty
+	create 640 ###SITE### ###SITE### 
+	sharedscripts
+	postrotate
+		###ROOT###/bin/omd restart apache
+	endscript
+}



More information about the omd-commits mailing list