Comment 3 for bug 1648467

Revision history for this message
Serg Lystopad (slystopad) wrote :

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