Copy link to clipboard
Copied
I have a Windows 2012R2 server(iis 8.5) running Coldfusion 11 Developer edition. I have 6 instances running on the server. They work fine and everything seems to be configured correctly.
When I restart the server, the main instance starts up correctly, but the other 6 instances don't autostart. I have to go into instance manager and start each instance.
I don't see any errors in any logs and can;t figure out why they won;t start after a server/service restart.
There is an MS DOS tool you can use to add a service. It is SC.EXE. I shall illustrate its use with an example.
Suppose, that I had installed two Coldfusion 11 instances named testInstance1 and myNewCFInstance. Their installation directories are, respectively
C:\ColdFusion11\testInstance1\
C:\ColdFusion11\myNewCFInstance\
To add them as Windows services, you could proceed as follows.
Click on the Windows Start symbol.
When you type cmd in the search field, a link to the DOS command prompt should appea
...Copy link to clipboard
Copied
Go to Control Panel => Administrative Tools.
Open Services.
You will then get the list of services registered with Windows.
Is each of the 6 instances in the list, and does it have "Automatic" Startup Type? If you answer no, then that is potentially the issue.
Copy link to clipboard
Copied
I don't see each service in the list. I did select to create a windows service for each when I created them though.
Can you help with adding the services?
Copy link to clipboard
Copied
There is an MS DOS tool you can use to add a service. It is SC.EXE. I shall illustrate its use with an example.
Suppose, that I had installed two Coldfusion 11 instances named testInstance1 and myNewCFInstance. Their installation directories are, respectively
C:\ColdFusion11\testInstance1\
C:\ColdFusion11\myNewCFInstance\
To add them as Windows services, you could proceed as follows.
Click on the Windows Start symbol.
When you type cmd in the search field, a link to the DOS command prompt should appear.
Right-click on the link and select to Run as Administrator. You should now get the DOS command prompt.
You can now run the DOS command, SC, to add a Windows service. You will have to do this for each and every instance you wish to add, one instance at a time.
testInstance1
Type the following after the prompt and press enter:
sc create "ColdFusion 11 testInstance1" binPath= C:\ColdFusion11\testInstance1\bin\coldfusionsvc.exe start= auto DisplayName= "ColdFusion 11 testInstance1"
Explanation:

You should get the result "SUCCESS".
To add the description, you have to run SC once again:
sc description "ColdFusion 11 testInstance1" "My first ColdFusion 11 instance"
Explanation:

myNewCFInstance
For my second instance, the DOS commands I used to create the Windows service and to add the description were, respectively,
sc create "ColdFusion 11 myNewCFInstance" binPath= C:\ColdFusion11\myNewCFInstance\bin\coldfusionsvc.exe start= auto DisplayName= "ColdFusion 11 myNewCFInstance"
Followed by
sc description "ColdFusion 11 myNewCFInstance" "ColdFusion 11 instance myNewCFInstance"
Some references:
https://coldfusionsolution.wordpress.com/2014/11/12/how-to-create-service-for-coldfusion/
https://forums.adobe.com/thread/1152396
Should you make a mistake, and wish to delete a service, then see
How to Delete a Windows Service in Windows 7, 8, 10, Vista, or XP
Copy link to clipboard
Copied
Thanks for the help!
Copy link to clipboard
Copied
My pleasure.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now