>- see footer for list info -<

As far as I can see, the only way Apache works is to keep one log file.  On
one occasion this grew to 250mb.  Apache locks the file when running.

If you know of some way to get Apache to split it's logs by day/week/month
I'd like to know?


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Duncan Cumming
> Sent: 14 June 2005 12:08
> To: [email protected]
> Subject: Re: [CF-Dev] Restarting apache
>
>
> >- see footer for list info -<
> Shouldn't you just archive yesterday's logfile, not today's?
> That way you wouldn't need to stop the webserver, which isn't an
> ideal thing to do at the best of times.
>
>
> Duncan Cumming
> New Media Developer
> Customer Relations Management / Education
> Fife Council
> 700 4105 / 01592 414105
>
> >>> "Jenny Gavin-Wear" <[EMAIL PROTECTED]> 14/06/2005 11:40 >>>
> >- see footer for list info -<
>
> Writing a script to archive my apache logs ...
>
> <cfif logs.size gt 50000>
> <cfexecute name ="c:\apache2\bin\apache.exe" arguments="-k
> stop"></cfexecute>
> <cffile action = "rename" source = "C:\Apache2\logs\#logs.name#"
> destination
> = "c:\apache2\logs\#lsdateformat(now())#.log">
> <cfexecute name ="c:\apache2\bin\apache.exe" arguments="-k
> start"></cfexecute>
> </cfif>
>
> Assuming I need to stop Apache to rename the log, looks like the
> cffile runs
> before apache has a chance to shut down ...
>
> any ideas how i can get around this please?
>
> Thanks
>
> jenny
> http://www.chicksnchaps.co.uk
>
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving
> lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer
> your help -<
>
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom
> they are addressed and should not be disclosed to any other party.
> If you have received this email in error please notify your
> system manager and the sender of this message.
>
> This email message has been swept for the presence of computer
> viruses but no guarantee is given that this e-mail message and
> any attachments are free from viruses.
>
> Fife Council
> Tel: +44 (0) 1592 414141
> **********************************************************************
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving
> lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer
> your help -<
>



_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to