What version of CF are you running? If you are running J2EE this should work from <jrun install>\bin.
jrun.exe -restart <instance name> -Adam On Mon, 31 Jan 2005 16:19:28 -0500, Dave Merrill <[EMAIL PROTECTED]> wrote: > I was hopeful that someone had solved this for MX61, but instead I'm > confused. I don't have an 'opt' directory (Windows 2000), and don't find any > files named 'coldfusion.*' that you might be referring to. Is this solution > for unix only? More particulars? > > FWIW, we had something for this purpose working in cf45, but it stopped > working when we went from there to mx61. CF would stop, but not restart. > > The .bat file we used (with cfexecute) was this, except that we've since > added the ' MX': > > ----------------- > REM stop all CF services > net stop "ColdFusion MX ODBC Agent" > net stop "ColdFusion MX ODBC Server" > net stop "ColdFusion MX Application Server" > sleep 10 > REM start all CF services > net start "ColdFusion MX Application Server" > net start "ColdFusion MX ODBC Server" > net start "ColdFusion MX ODBC Agent" > ----------------- > > If anyone has any idea how to do this, we'd love to know. > > Thanks, > > Dave Merrill > > > > Jon Block wrote: > > > > |What's the way in which you can restart CFMX service with CFML code > > |natively? > > | > > |Jon > > | > > <CFEXECUTE NAME="/opt/coldfusionmx/bin/coldfusion" ARGUMENTS="restart"> > > > > Note that you must allow whatever user CFMX/Apache is running as > > permissions to execute that command... which opens up a whole new can > > of worms.... > > > > Another way to go about it is to have CFMX write to a shell script and > > have that shell script executed by a cron job with the appropriate > > permissions. > > > > At any rate, it requires a bit of creative thinking, but should be > > possible. > > > > - -- > > Warm regards, > > Jordan Michaels > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192446 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

