I think the renaming fails because Windows is picky about not messing with files that are open. Can we close the log file before rolling? Seems like nslog does this for the access log. Just needs to be done similarly in nsd/log.c. That might require copying a bunch of stuff over from nslog.c or putting the common code somewhere else. There's certainly seems to be a lot of redundancy between the two sets of code, a great candidate for streamlining.
Titi Ala'ilima Lead Architect MedTouch LLC 1100 Massachusetts Avenue Cambridge, MA 02138 617.621.8670 x309 > -----Original Message----- > From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On > Behalf Of Titi Alailima > Sent: Tuesday, May 06, 2008 5:18 PM > To: AOLSERVER@LISTSERV.AOL.COM > Subject: Re: [AOLSERVER] Rolling logs in Windows > > Not quite. I get a permission error renaming the old file. I'm > running as a service from the "local System" account. Any ideas why it > can't rename the file even though it can create, remove and write to > files? > > Regardless, I was wondering if there was a way from the OS to send the > NS_SIGHUP signal. Doesn't look like it if I read the source correctly. > > Titi Ala'ilima > Lead Architect > MedTouch LLC > 1100 Massachusetts Avenue > Cambridge, MA 02138 > 617.621.8670 x309 > > > -----Original Message----- > > From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On > > Behalf Of Tom Jackson > > Sent: Tuesday, May 06, 2008 3:50 PM > > To: AOLSERVER@LISTSERV.AOL.COM > > Subject: Re: [AOLSERVER] Rolling logs in Windows > > > > Does ns_logroll work? > > > > http://rmadilo.com/files/nsapi/ns_logroll.html > > > > tom jackson > > > > On Tuesday 06 May 2008 12:12, Titi Alailima wrote: > > > Anyone know how to signal nsd in Windows to roll the logs? Any > > equivalent > > > of "kill -HUP"? > > > > > > Titi Ala'ilima > > > Lead Architect > > > MedTouch LLC > > > 1100 Massachusetts Avenue > > > Cambridge, MA 02138 > > > 617.621.8670 x309 > > > > > > > > > > > > -- > > > AOLserver - http://www.aolserver.com/ > > > > > > To Remove yourself from this list, simply send an email to > > > <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in > > the > > > email message. You can leave the Subject: field of your email > blank. > > > > > > -- > > AOLserver - http://www.aolserver.com/ > > > > To Remove yourself from this list, simply send an email to > > <[EMAIL PROTECTED]> with the > > body of "SIGNOFF AOLSERVER" in the email message. You can leave the > > Subject: field of your email blank. > > > -- > AOLserver - http://www.aolserver.com/ > > To Remove yourself from this list, simply send an email to > <[EMAIL PROTECTED]> with the > body of "SIGNOFF AOLSERVER" in the email message. You can leave the > Subject: field of your email blank. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.