Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Restarting ColdFusion 8 Using A .bat File

Participant ,
Mar 01, 2010 Mar 01, 2010

One of the problems we experience with our existing ColdFusion 5 installation is that during times of high E-Mail volume, our E-Mail server slows down and ColdFusion 5 locks up on a single .cfmail file it's trying to send. When this occurs the "spool" folder fills up, and the only way to release the lock and start sending E-Mails again is to restart ColdFusion. I'm upgrading to ColdFusion 8 soon though, does anyone know if it has the same problems?

Regardless, I want to have available to me (for when I'm not at a computer and therefore unable to Terminal Services into my server) a function from my application's administration area for restarting ColdFusion 8 services. I found tons of .bat file examples of "net stop" and "net start" commands thanks to Google, which are executed via CFEXECUTE. Obviously though, even when these two scripts are combined into one .bat file, CFEXECUTE bombs out after completing the "net stop" portion, as the service is not started. Has anyone put together a similar solution, but found a way around this problem?

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Mar 02, 2010 Mar 02, 2010
LATEST

I've never had any issues with CF8 locking on emails, we send thousands without any issues.

As for the script I have honestly never tried restarting CF from itself, but I'd try calling a Powershell script, which can do the restart in one move:

   get-service | ?{$_.name -match "Coldfusion 8 Application Server"} | restart-service

Haven't tried it but that'd be a good place to start I reckon.

O.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources