Hello,
I’m not sure, is it just right to truncate the nginx’s access log by:
echo -n > /path/to/log/access.log
Thanks.
–
Jeff P.
www.DNSbed.com
Hello,
I’m not sure, is it just right to truncate the nginx’s access log by:
echo -n > /path/to/log/access.log
Thanks.
–
Jeff P.
www.DNSbed.com
On Wed, May 25, 2011 at 01:10:54PM +0800, Jeff P. wrote:
Hello,
I’m not sure, is it just right to truncate the nginx’s access log by:
echo -n > /path/to/log/access.log
nginx uses O_APPEND flag for access log, so this trick may work.
There is however, a more safer way:
rm access.log
kill -USR1 cat /path/to/nginx.pid
–
Igor S.
2011/5/25 Igor S. [email protected]:
nginx uses O_APPEND flag for access log, so this trick may work.
There is however, a more safer way:rm access.log
kill -USR1cat /path/to/nginx.pid
That’s right. Thanks Igor.
–
Jeff P.
www.DNSbed.com
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs