log rotation on windows?

Arthur Blake arthur.blake at gmail.com
Mon Aug 23 19:13:50 MSD 2010


I tried that and it does not work either, but I've found that if I run nginx
directly from the command line, it does work.

I am using a windows service wrapper so that nginx can continue to run when
I'm logged off (as documented here
http://misterdai.wordpress.com/2009/10/16/nginx-windows-service/)
In fact, none of the -s commands work when I'm running it under a service.
 Any ideas why not?  I tried it both under an administrator account and the
actual account that it is running under as a service...

It wasn't clear to me that "-s reopen" was for reopening the log files (not
anywhere on the wiki or faq.  I guess it's supposed to be obvious?)

On Mon, Aug 23, 2010 at 10:56 AM, Igor Sysoev <igor at sysoev.ru> wrote:

> On Mon, Aug 23, 2010 at 10:53:38AM -0400, Arthur Blake wrote:
>
> > C:\nginx>tasklist /fi "imagename eq nginx"
> > INFO: No tasks are running which match the specified criteria.
> >
> > C:\nginx>tasklist /fi "imagename eq nginx.exe"
> >
> > Image Name                     PID Session Name        Session#    Mem
> Usage
> > ========================= ======== ================ ===========
> ============
> > nginx.exe                     1884 Services                   0
>  4,460 K
> > nginx.exe                     1752 Services                   0
>  5,512 K
>
> Strange, there is a process with 1884 pid. The event should exist.
> Could you terminate the nginx processes, then start nginx again and try
> to run "nginx -s reopen" ?
>
> > On Mon, Aug 23, 2010 at 10:51 AM, Igor Sysoev <igor at sysoev.ru> wrote:
> >
> > > On Mon, Aug 23, 2010 at 10:44:21AM -0400, Arthur Blake wrote:
> > >
> > > > I get this error:
> > > >
> > > > C:\nginx>nginx -s reopen
> > > > [error]: OpenEvent("ngx_reopen_1884") failed (2: The system cannot
> find
> > > the
> > > > file specified)
> > >
> > > What does
> > >
> > > tasklist /fi "imagename eq nginx.exe"
> > >
> > > show ?
> > >
> > >
> > > --
> > > Igor Sysoev
> > > http://sysoev.ru/en/
> > >
> > > _______________________________________________
> > > nginx mailing list
> > > nginx at nginx.org
> > > http://nginx.org/mailman/listinfo/nginx
> > >
>
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100823/a3be6cbf/attachment.html>


More information about the nginx mailing list