Net Start "Service Name"
Net Stop "Service Name"

"Service Name" can be found by looking at the properties of the service in
the services control panel in the Administrative Tools.

- Calvin

----- Original Message ----- 
From: "Shahzad.Butt" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 02, 2003 6:36 AM
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to