配置logrotate的例子

--------------------------------------------
/usr/local/nginx/logs/guilong.com.cn-access.log {
    missingok
    notifempty
    size 1000M
    rotate 4
    #create 0771 root root
    
postrotate
    if [ -f /usr/local/nginx/nginx.pid ]; then
        cat /usr/local/nginx/nginx.pid|xargs kill -USR1
    fi
endscript

}

--------------------------------------------

posted @ 2013-11-05 16:59  郭郭哥  阅读(216)  评论(0编辑  收藏  举报