diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-11 15:17:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-11 15:17:06 +0000 |
commit | 7380979a0bbc147af227a936b8fcfba816c2295c (patch) | |
tree | 4f8b44e3ee4e0d0ff23b66361e67577e7ea0bd22 /main/dovecot/dovecot.logrotate | |
parent | d2534f031a20a769da681ab9c2e782b1afc8f4fc (diff) | |
download | aports-7380979a0bbc147af227a936b8fcfba816c2295c.tar.bz2 aports-7380979a0bbc147af227a936b8fcfba816c2295c.tar.xz |
main/dovecot: use logfile in default config and provide logrotate
fixes #360
Diffstat (limited to 'main/dovecot/dovecot.logrotate')
-rw-r--r-- | main/dovecot/dovecot.logrotate | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/main/dovecot/dovecot.logrotate b/main/dovecot/dovecot.logrotate new file mode 100644 index 0000000000..7bd0003f7f --- /dev/null +++ b/main/dovecot/dovecot.logrotate @@ -0,0 +1,15 @@ +/var/log/dovecot*.log { + daily + missingok + copytruncate + rotate 7 + compress + notifempty + sharedscripts + postrotate + if /etc/init.d/dovecot -q status ; then \ + /etc/init.d/dovecot reload > /dev/null 2>&1 || true ; \ + fi; + endscript +} + |