mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 05:37:34 +03:00
dist: Add logrotate configuration
This commit is contained in:
parent
8e8fee2b6b
commit
776e446fab
2 changed files with 11 additions and 0 deletions
4
dist/README.md
vendored
4
dist/README.md
vendored
|
@ -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
7
dist/logrotate.d/maddy
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
/var/log/maddy/maddy.log {
|
||||
missingok
|
||||
su maddy maddy
|
||||
postrotate
|
||||
/usr/bin/killall -USR1 maddy
|
||||
endscript
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue