<div>Thanks.<br></div><div>I found it.</div><br><div class="gmail_quote">On Tue, Jul 6, 2010 at 8:28 PM, brianmercer <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Xin Liu Wrote:<br>
-------------------------------------------------------<br>
<div><div class="h5">> Hi all,<br>
><br>
> My server is Debian. And I installed nginx<br>
> (0.7.67-1) to host my webpage.<br>
> The problem is that, everyday on 06:25PM (New York<br>
> time), nginx will<br>
> generate a new log file and rename the old log<br>
> file nginx.log.1.<br>
> I've checked server, there is no schedule job. And<br>
> nobody restart nginx or<br>
> force nginx to generate a new log.<br>
> Anyone can help?<br>
<br>
</div></div>That does sound like the default behavior of Debian for cron and<br>
logrotate. Check /etc/crontab for the 6:25AM entry:<br>
<br>
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts<br>
--report /etc/cron.daily )<br>
<br>
and check for /etc/cron.daily/logrotate and /etc/logrotate.d/nginx.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,105720,105875#msg-105875" target="_blank">http://forum.nginx.org/read.php?2,105720,105875#msg-105875</a><br>
<div><div class="h5"><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>