I have a Windows service on Windows Server 2008 R2 that I set-up using
instsrv on the
srvany.exe executable. The three values in the
Parameters key are set as follows:
AppDirectory C:\selenium-grid Application C:\ant\bin\ant.bat AppParameters launch-hub
The service starts fine and two Java processes appear in the Task Manager when it starts (one process is ant and the other is a Java class launched by ant). When I stop the service the status of the service changes to stopped but the two Java processes do not go away.
How do I get the processes to stop when I stop the service?