>- see footer for list info -<
You can bung a wait in there - this will allow Apache to shut down before CF
runs.

<cfset wait_time = 10>
        
<cfscript>    
        thread = createObject("java", "java.lang.Thread");    
        thread.sleep(javaCast("long", 500*wait_time));
</cfscript>






-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jenny Gavin-Wear
Sent: 14 June 2005 11:41
To: Coldfusion Development
Subject: [CF-Dev] Restarting apache

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

--

>- 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 e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
_______________________________________________

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