/etc/nginx/vhost_logs Ротация логов
Добавлено: Пн апр 08, 2024 12:02 pm
/etc/nginx/vhost_logs
Логи по 200 мб. Есть очучение, что ротация логов в этой папке не работает.
Хотя все прописано, вроде бы...
/var/log/nginx/*log {
create 0644 nginx nginx
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
/etc/nginx/vhost_logs/* {
create 0644 root nginx
daily
rotate 10
size 40M
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
Логи по 200 мб. Есть очучение, что ротация логов в этой папке не работает.
Хотя все прописано, вроде бы...
/var/log/nginx/*log {
create 0644 nginx nginx
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
/etc/nginx/vhost_logs/* {
create 0644 root nginx
daily
rotate 10
size 40M
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}