dist: Add logrotate configuration

This commit is contained in:
fox.cpp 2019-09-19 19:59:59 +03:00
parent 8e8fee2b6b
commit 776e446fab
No known key found for this signature in database
GPG key ID: E76D97CCEDE90B6C
2 changed files with 11 additions and 0 deletions

4
dist/README.md vendored
View file

@ -22,3 +22,7 @@ Configuration files for use with fail2ban. Assume either `backend = systemd` spe
in system-wide configuration or log file written to /var/log/maddy/maddy.log.
See https://github.com/foxcpp/maddy/wiki/fail2ban-configuration for details.
## logrotate configuration
Meant for logs rotation when logging to file is used.

7
dist/logrotate.d/maddy vendored Normal file
View file

@ -0,0 +1,7 @@
/var/log/maddy/maddy.log {
missingok
su maddy maddy
postrotate
/usr/bin/killall -USR1 maddy
endscript
}