%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /etc/logrotate.d/
Upload File :
Create Path :
Current File : //etc/logrotate.d/nginx

/var/log/nginx/*.log {
        missingok
        rotate 21
        compress
        delaycompress
        notifempty
        nodateext
        sharedscripts
        daily
        postrotate
                if [ -f /var/run/nginx.pid ]; then
                        kill -USR1 `cat /var/run/nginx.pid`
                fi
        endscript
}

/var/log/cpanel-server-traffic/web/traffic-nginx.log {
    copytruncate
    rotate 5
    daily
    compress
    missingok
    extension traffic-nginx.log
    dateext
    dateformat %Y-%m-%d-
    dateyesterday
}

Zerion Mini Shell 1.0