~oddbloke/charms/trusty/ubuntu-repository-cache/update_charm-helpers

« back to all changes in this revision

Viewing changes to templates/logrotate/logrotate.conf.template

  • Committer: Robert Jennings
  • Date: 2015-03-30 14:12:50 UTC
  • Revision ID: robert.jennings@canonical.com-20150330141250-yq8lcwfub5spj2ct
Add missing logrotate template

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file is managed by Juju. Do not make local changes
 
2
 
 
3
/var/log/apache2/*.log {
 
4
        {{ logrotate_rotate }}
 
5
{%- if logrotate_dateext %}
 
6
        dateext
 
7
{%- endif %}
 
8
        missingok
 
9
        rotate {{ logrotate_count }}
 
10
        compress
 
11
        delaycompress
 
12
        notifempty
 
13
        create 640 root adm
 
14
        sharedscripts
 
15
        postrotate
 
16
                /etc/init.d/apache2 reload > /dev/null
 
17
        endscript
 
18
        prerotate
 
19
                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
 
20
                        run-parts /etc/logrotate.d/httpd-prerotate; \
 
21
                fi; \
 
22
        endscript
 
23
}