Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: =?ISO-8859-1?Q?Jos=E9_Parrella?= <joseparrella-Re5JQEeQqe8AvxtiuMwx3w <at> public.gmane.org>
Subject: Re: Logrotating the log files
Newsgroups: gmane.comp.web.nginx.english
Date: Saturday 20th January 2007 11:41:48 UTC (over 10 years ago)
Jeremy Hubert escribió:
> So.. any tips? Has anyone else done this?

This is the logrotate file that we use in nginx's Debian package. Note
that the root:adm permissions might need further revision in your own
system, as well as the logs and pid file location. I hope it helps.


/var/log/nginx/*.log {
        daily
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat
/var/run/nginx.pid`
        endscript
}


-- 
José M. Parrella -> Debian Sid, k2.6.18
Escuela de Ingenieria Electrica
Universidad Central de Venezuela -> ucvlug.info
 
CD: 3ms