Problem with nginx-0.7.67 logs

Hi all,

My server is Debian. And I installed nginx (0.7.67-1) to host my
webpage.
The problem is that, everyday on 06:25PM (New York time), nginx will
generate a new log file and rename the old log file nginx.log.1.
I’ve checked server, there is no schedule job. And nobody restart nginx
or
force nginx to generate a new log.
Anyone can help?

are you sure you have checked both cronjob as well as scripts running
in the background? it sounds like log rotate to me
cheers
Payam

On Mon, Jul 5, 2010 at 7:01 PM, Xin L. [email protected] wrote:

[email protected]
nginx Info Page


Payam Tarverdyan Chychi
Network Security Specialist / Network Engineer

Hi Payam,

I’ve checked cronjob. And I didn’t use log rotate. I just use awstats to
analysis logs and purge nginxlog.
Is there any script special I need to check?

Xin L. Wrote:

force nginx to generate a new log.
Anyone can help?

That does sound like the default behavior of Debian for cron and
logrotate. Check /etc/crontab for the 6:25AM entry:

25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts
–report /etc/cron.daily )

and check for /etc/cron.daily/logrotate and /etc/logrotate.d/nginx.

Posted at Nginx Forum:

Thanks.
I found it.