summaryrefslogtreecommitdiffstats
path: root/glpi-logrotate
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-13 20:25:47 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-13 20:25:47 +0200
commit8b060f807e06e8b83bc06f8595c132f9c0e31c5a (patch)
treed1313d827368906867cf980909152ff3f84059fe /glpi-logrotate
reorg repo
Diffstat (limited to 'glpi-logrotate')
-rw-r--r--glpi-logrotate10
1 files changed, 10 insertions, 0 deletions
diff --git a/glpi-logrotate b/glpi-logrotate
new file mode 100644
index 0000000..e25627f
--- /dev/null
+++ b/glpi-logrotate
@@ -0,0 +1,10 @@
+# Rotate GLPI logs daily, only if not empty
+# Save 14 days old logs under compressed mode
+/var/log/glpi/*.log {
+ daily
+ rotate 14
+ compress
+ notifempty
+ missingok
+ create 644 apache apache
+}