logrotate

This commit is contained in:
Mateusz Gruszczyński committed 2025-10-27 09:44:54 +01:00
1 parent 0a4f4bf1d4
commit e73027a3c8
2 files changed
+17

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/opt/certpusher/logs/*.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
create 0644 root root
dateext
dateformat -%Y%m%d
extension .log
nomail
postrotate
find /opt/certpusher/logs -name "*.log*" -type f -mtime +3 -delete
endscript
}