aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/logrotate
blob: de9ed7599bb208e452974024ca795c85dc44ef37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex {
<% if @hostname == 'duvel' then %>
    rotate 60
    daily
<% else %>
    rotate <%= scope.lookupvar('apache::var::httpdlogs_rotate') %>
    monthly
<% end %>
    missingok
    notifempty
    compress
    postrotate
	/bin/systemctl restart httpd.service > /dev/null 2>/dev/null || true
    endscript
}