Nether cat /etc/logrotate.d/nginx /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 /usr/bin/dockerctl shell nginx nginx -s reopen endscript }
nor
# dockerctl shell nginx # cat /etc/logrotate.d/nginx /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 /usr/sbin/nginx -s reopen endscript }
helps
Nether d/nginx
/usr/bin/ dockerctl shell nginx nginx -s reopen
cat /etc/logrotate.
/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
}
nor
# dockerctl shell nginx d/nginx
/usr/sbin/ nginx -s reopen
# cat /etc/logrotate.
/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
}
helps