Welcome! Log In Create A New Profile

Advanced

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

Lasse Laursen
May 20, 2014 03:54AM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

samingrassia May 19, 2014 03:06PM

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

Francis Daly May 19, 2014 03:38PM

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

Lord Nynex May 19, 2014 03:56PM

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

B.R. May 20, 2014 03:04AM

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

Valentin V. Bartenev May 20, 2014 03:38AM

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

B.R. May 20, 2014 06:52AM

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

Lasse Laursen May 20, 2014 03:54AM

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

Valentin V. Bartenev May 20, 2014 04:06AM

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

Maxim Dounin May 20, 2014 07:34AM

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

alder September 27, 2017 04:18PM

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

Maxim Dounin September 28, 2017 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
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