Google Groups Home
Help | Sign in
Rolling logs in Windows
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Titi Alailima  
View profile
 More options May 6, 3:12 pm
From: Titi Alailima <t...@MEDTOUCH.COM>
Date: Tue, 6 May 2008 12:12:58 -0700
Local: Tues, May 6 2008 3:12 pm
Subject: [AOLSERVER] Rolling logs in Windows

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 <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Jackson  
View profile
 More options May 6, 3:50 pm
From: Tom Jackson <t...@RMADILO.COM>
Date: Tue, 6 May 2008 12:50:21 -0700
Local: Tues, May 6 2008 3:50 pm
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:

--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Titi Alailima  
View profile
 More options May 6, 5:18 pm
From: Titi Alailima <t...@MEDTOUCH.COM>
Date: Tue, 6 May 2008 14:18:21 -0700
Local: Tues, May 6 2008 5:18 pm
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

--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Titi Alailima  
View profile
 More options May 6, 10:23 pm
From: Titi Alailima <t...@MEDTOUCH.COM>
Date: Tue, 6 May 2008 19:23:43 -0700
Local: Tues, May 6 2008 10:23 pm
Subject: Re: [AOLSERVER] Rolling logs in Windows
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

--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Jackson  
View profile
 More options May 6, 10:53 pm
From: Tom Jackson <t...@RMADILO.COM>
Date: Tue, 6 May 2008 19:53:50 -0700
Local: Tues, May 6 2008 10:53 pm
Subject: Re: [AOLSERVER] Rolling logs in Windows
On Tuesday 06 May 2008 19:23, Titi Alailima wrote:

> 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.

My guess is that it would be better to keep the two chunks of code distinct. I
seem to remember that they are not that similar anyway. (For one, a single
nsd can have multiple access.log files, but only one server.log file.)

tom jackson

--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google