Welcome! Log In Create A New Profile

Advanced

Re: log rotation on windows?

August 25, 2010 01:24PM
Hi

On Wed, Aug 25, 2010 at 13:06, Arthur Blake <arthur.blake@gmail.com> wrote:
>  On Linux, which command is better to rotate log files?

The Debian package installs this file: /etc/logrotate.d/nginx:
/var/log/nginx/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 www-data adm
sharedscripts
postrotate
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
endscript
}

So, in this case, kill. logrotate gets run by cron every now and then,
your only concern is cleaning logfiles (if your disk is small).

HTH,
Nuno

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

log rotation on windows?

Arthur Blake August 23, 2010 09:08AM

Re: log rotation on windows?

edogawaconan August 23, 2010 10:34AM

Re: log rotation on windows?

Arthur Blake August 23, 2010 10:48AM

Re: log rotation on windows?

Arthur Blake August 23, 2010 11:00AM

Re: log rotation on windows?

Igor Sysoev August 23, 2010 11:04AM

Re: log rotation on windows?

Arthur Blake August 23, 2010 11:18AM

Re: log rotation on windows?

Arthur Blake August 24, 2010 07:14AM

Re: log rotation on windows?

Igor Sysoev August 24, 2010 08:00AM

Re: log rotation on windows?

Arthur Blake August 24, 2010 08:08AM

Re: log rotation on windows?

Igor Sysoev August 25, 2010 08:34AM

Re: log rotation on windows?

Arthur Blake August 25, 2010 09:20AM

Re: log rotation on windows?

Igor Sysoev August 25, 2010 09:22AM

Re: log rotation on windows?

Arthur Blake August 25, 2010 09:52AM

Re: log rotation on windows?

Igor Sysoev August 24, 2010 08:08AM

Re: log rotation on windows?

Arthur Blake August 24, 2010 08:22AM

Re: log rotation on windows?

Arthur Blake August 25, 2010 08:22AM

Re: log rotation on windows?

Igor Sysoev August 25, 2010 08:36AM

Re: log rotation on windows?

edogawaconan August 25, 2010 09:52AM

Re: log rotation on windows?

vesperto August 25, 2010 01:24PM

Re: log rotation on windows?

Igor Sysoev August 23, 2010 11:02AM

Re: log rotation on windows?

anyhow2 February 04, 2011 03:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready