Shahzad, A few pointers:
If you locate the relevant services via the services applet you can specify files to run on various events including: First Failure Second Failure Subsequent Failures In addition to specifying a file to execute you can indicate you want the service automatically restarted. If you go with the batch file route, it’s just a matter of using net start with the appropriate service name e.g. Net start “ColdFusion MX Application Server” You can find the name of the service name by right clicking on the appropriate service and looking at the “general” tab. There are already batch files provided for stopping and starting MX services: Start.bat Stop.bat Located here: {cfroot}\bin André -----Original Message----- From: Shahzad.Butt [mailto:[EMAIL PROTECTED] Sent: 02 September 2003 11:37 To: CF-Talk Subject: RE: Load Balancing How does that batch file know when to be executed. Or shall I schedule every 1 min? which I don't feel is right. Because I want to start the restart the services whenever it crashes not just one off. Also can I have a copy of that batch file (to stop or restart IIS/CFMX services) if someone has written???? Thanks Shaz -----Original Message----- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: 02 September 2003 10:40 To: CF-Talk Subject: Re: Load Balancing On Tuesday 02 Sep 2003 09:20 am, Shahzad.Butt wrote: > So all I need is that if for some reason either IIS or CF server is > crashed or stopped then either it shuts down the server or it restart > that services. Seems easy enough - write a batch file that requests a file from your webserver, and if it doesn't get it, stops the service. I use CygWin for stuff like this. -- Tom Chiverton (sorry 'bout sig.) Advanced ColdFusion Programmer Tel: +44(0)1749 834997 email: [EMAIL PROTECTED] BlueFinger Limited Underwood Business Park Wookey Hole Road, WELLS. BA5 1AF Tel: +44 (0)1749 834900 Fax: +44 (0)1749 834901 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com