Ajout d'un logrotate pour les logs de nginx

This commit is contained in:
Jean-Marie Favreau
2025-04-28 12:05:06 +02:00
parent bfcc23c133
commit c3fbaac385
5 changed files with 42 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
/var/log/nginx/*.log {
su root nginx
daily
missingok
rotate 7
compress
delaycompress
notifempty
create 640 root nginx
sharedscripts
postrotate
[ -f /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
endscript
}