Add alternative state file.

This commit is contained in:
Marin Jankovski 2015-05-07 20:34:26 +02:00
parent a2575769ab
commit 42591805f6
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ cd <%= node['gitlab']['logrotate']['dir'] %>
# Sleep a bit to avoid going nuts after gitlab just started.
sleep <%= node['gitlab']['logrotate']['pre_sleep'] %>
nice /opt/gitlab/embedded/sbin/logrotate logrotate.conf
nice /opt/gitlab/embedded/sbin/logrotate -s /var/log/gitlab/logrotate/logrotate.status logrotate.conf
# Sleep some more. After this, the script exits to be restarted by Runit.
sleep <%= node['gitlab']['logrotate']['post_sleep'] %>