Add a logrotate configuration for production

This commit is contained in:
Henne Vogelsang
2019-03-11 16:55:41 +01:00
parent 959d5af1e4
commit 40c9f47c70

13
dist/osem.logrotate vendored Normal file
View File

@@ -0,0 +1,13 @@
/home/osem/events/shared/log/*.log {
compress
dateext
maxage 31
rotate 99
size=+4096k
missingok
notifempty
create 644 osem osem
postrotate
/usr/bin/touch /home/osem/events/current/tmp/restart.txt
endscript
}