Quick question about using kill -USR1 to recreate access.log

Lasse Laursen laursen at oxygen.net
Tue May 20 07:52:09 UTC 2014


Alternatively have a look here: http://www.cambus.net/log-rotation-directly-within-nginx-configuration-file/

Kind regards
Lasse Laursen

> On 19 May 2014, at 21:06, "samingrassia" <nginx-forum at nginx.us> wrote:
> 
> Thanks to everyone in advance!
> 
> I have a cron that runs the following:
> 
> mv $NGINX_ACCESS_LOG $ACCESS_LOG_DROPBOX/$LOG_FILENAME
> kill -USR1 `cat $NGINX_PID`
> 
> My questions is during time between the mv and the kill, is there any log
> writes that are being discarded or are they being stacked in memory and
> dumped into the new access.log after it is recreated?
> 
> Thanks!
> 
> Sam
> 
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250214,250214#msg-250214
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list