Sometimes when you try to stop the ColdFusion Service windows service control times out and the jrun.exe / jrunsvc.exe don’t stop, and you have to kill them manually in task manager. This normally happens when you have Debugging setup and so you have JRun listening on an additional port it just never stops.
There is a very helpful exe in the install if you go to your install folder there is a folder called uninstall within in this folder there is an application called KillJRun.exe which I guess is run when you uninstall CF and it makes sure all JRun Instances have been stopped so it can remove the files.
So I now have a CFRestart Batch file that calls this, and then start the service again, which is much faster then it was in the past when I had to manually kill JRun in task manager.
Hope fully this will help someone.
My full batch file is:
c:\Appli\JRun4\uninstall\KillJRun.exe net start "Macromedia JRun CFusion Server" pause