Welcome! Log In Create A New Profile

Advanced

about log rotation

Chieu
June 22, 2009 03:18AM
hi,all
I found the way of the log rotation is below. And during the period between
"mv" and "kill", some logs will be lost because of the file doesn't exist
any more.
Is there any good ways?

thanks



nginx will re-open it's logs in response to the USR1 signal.

$ mv access.log access.log.0
$ kill -USR1 cat master.nginx.pid
$ sleep 1
$ gzip access.log.0 # do something with access.log.0
Subject Author Posted

about log rotation

Chieu June 22, 2009 03:18AM

Re: about log rotation

Igor Sysoev June 22, 2009 05:06AM

Re: about log rotation

Chieu June 22, 2009 10:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready