summaryrefslogtreecommitdiffstats
path: root/server/etc/logrotate.tmpl
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-12-22 13:38:11 +0000
committerramon <ramongomez@us.es>2011-12-22 13:38:11 +0000
commitc3c7cb3ae6f6600223111a572050f34f2df6fa71 (patch)
tree96fce1db6bf64fee2845d3a48abcbe07d9937562 /server/etc/logrotate.tmpl
parent4caea352de0d0a19d4e0a2e2dd04980dd28e6be0 (diff)
Congelar versiĆ³n 1.0.2 en tags/opengnsys-1.0.2 (modifica #446).opengnsys-1.0.2
git-svn-id: https://opengnsys.es/svn/tags/opengnsys-1.0.2@2405 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/etc/logrotate.tmpl')
-rw-r--r--server/etc/logrotate.tmpl24
1 files changed, 24 insertions, 0 deletions
diff --git a/server/etc/logrotate.tmpl b/server/etc/logrotate.tmpl
new file mode 100644
index 00000000..abe436d1
--- /dev/null
+++ b/server/etc/logrotate.tmpl
@@ -0,0 +1,24 @@
+# Los archivos se copian y luego se corta el original, para que los equipos puedan seguir escribiendo sobre ellos
+# Las copias se comprimen
+# Clientes: se guardan 500K de cada cliente: se rotan cuando llegan a 100K y se guardan 5
+# Mcastlog: se guardan dos semanas.
+# servicios opengnsys y tracker: se guardan 4 semanas
+
+
+copytruncate
+compress
+OPENGNSYSDIR/log/clients/*.log {
+ rotate 5
+ size 100k
+}
+
+OPENGNSYSDIR/log/mcastlog/ogAdmRepoMcast.*([-0-9]) {
+ rotate 2
+ weekly
+}
+
+OPENGNSYSDIR/log/bttrack.log OPENGNSYSDIR/log/ogAdmRepo.log OPENGNSYSDIR/log/ogAdmServer.log {
+ rotate 4
+ weekly
+}
+