aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/logrotate
blob: 4d90e47e1f4d2407dc4117b5e5e4f9f7ddfeea4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex {
<% if @hostname == 'duvel' %>
    rotate 60
    daily
<% elsif @hostname == 'friteuse' %>
    # The virtual disk is very small so keep log sizes down
    rotate 52
    weekly
<% elsif @hostname == 'sucuk' %>
    rotate 52
    weekly
<% else %>
    rotate <%= scope.lookupvar('apache::var::httpdlogs_rotate') %>
    monthly
<% end %>
    missingok
    notifempty
    sharedscripts
    compress
    postrotate
	/bin/systemctl restart httpd.service > /dev/null 2>/dev/null || true
    endscript
}