File redmine.logrotate of Package redmine
__LOGDIR__/*.log {
compress
dateext
maxage 90
rotate 45
size 2048k
notifempty
missingok
sharedscripts
su __NAME__ __NAME__
create 640 __NAME__ __NAME__
# this worked with Unicorn, but Puma can seemingly only reopen stdout redirection and not the "normal" production.log
# without preload this does a phased restart which also works, but with preload it is not supported
#postrotate
# __BINDIR__/systemctl kill --kill-who=main --signal=USR1 __NAME__.service
#endscript
# hence use workaround, https://github.com/puma/puma/issues/1962
copytruncate
}