[EMAIL PROTECTED] wrote:
> Hi list,
> I want to restart CF on box A from
> box B using CF everytime the service crashes on box A. I tried it with
> cfexecute, running a mapped drive K on box B with the following:
> <CFEXECUTE NAME="K:\winnt\system32\cmd.exe" ARGUMENTS="K:\cfusion\bin\cycle_new.bat" 
>Timeout="120">
> </CFEXECUTE>
> 
> In cycle_new.bat I have:
> @ECHO ON
> net stop "Cold Fusion Application Server"
> net start "Cold Fusion Application Server"
> @ECHO OFF
> PAUSE
> 
> But it is not working due to a cfexecute problem.
> Do you know, if there is another way to do this ?

That would be logical. The moment you try to stop the cf-service the 
batch file is terminated too.

try making two batch files. One with the contents you have above, the 
second with:

start cycle_new.bat

This should start the cycle_new in a new process away from coldfusion, 
so it won't get killed with the rest of it :)

Jesse


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to