summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-10-16 10:38:13 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-10-16 10:38:13 +0200
commitd378332ff9d05d1ab3d7661a4fbea99188225d8f (patch)
tree1b84e38ad83051aa116214674091c54c432a990a /lib
parent253850dd6d1da28758631f7b1945666fd489c8a5 (diff)
downloadgitlab-ce-d378332ff9d05d1ab3d7661a4fbea99188225d8f.tar.gz
Add logrotate setup to the installation guide
Diffstat (limited to 'lib')
-rw-r--r--lib/support/logrotate/gitlab22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/support/logrotate/gitlab b/lib/support/logrotate/gitlab
new file mode 100644
index 00000000000..df9398d0795
--- /dev/null
+++ b/lib/support/logrotate/gitlab
@@ -0,0 +1,22 @@
+# GitLab logrotate settings
+# based on: http://stackoverflow.com/a/4883967
+
+/home/git/gitlab/log/*.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ copytruncate
+}
+
+/home/git/gitlab-shell/gitlab-shell.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ copytruncate
+}