Add alternative state file.
This commit is contained in:
parent
a2575769ab
commit
42591805f6
|
@ -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'] %>
|
||||
|
|
Loading…
Reference in New Issue