Description
hi,
we have been using svcbatch 2.0.0 as a startup mechanism for our java
application (via a *.bat file) for some time. worked quite fine.
after switching to svcbatch 2.1.2 an "interesting" behaviour emerged:
while the service started successfully, stopping the service was not so easy:
the conhost and the java processes kept being actice while the state of the service said "STOPPED".
i have to mention that the *.bat script has a peculiarity:
...
:run
java ....
if %ERRORLEVEL% geq 2 goto :run
our service offers the ability to restart itself. if triggered (by whatever means), it exits with code 2
and the service restarts.
if i start the *.bat file interactively and hit ctrl-c, the reaction is:
Batchvorgang abbrechen (J/N)?
yes, the server language is German.
svcbatch has a mechanism to write "Y" back. but our german server would like an "J"
after hex-editing svcbatch.exe (replacing the Y by J), stopping via the service manager worked fine again.
let me stress again that this behaviour has been introduced between 2.0.0 and 2.1.2 of svcbatch, everything else is the same.
Regards