Skip to content

Commit

Permalink
Fix Windows start.bat file
Browse files Browse the repository at this point in the history
When starting midPoint, the stop procedure was immediately executed
as well. (In real life no one should be affected, as there's no time
to start midPoint, so there's nothing to stop at that moment.)

Also, the "end" label was missing.
  • Loading branch information
mederly committed Jan 11, 2018
1 parent 5b4e469 commit c843f71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/src/main/bin/midpoint.bat
Expand Up @@ -63,7 +63,10 @@ goto execStop
:execStart
echo "%cd%\lib\midpoint.war"
start /b javaw -jar -Xms2048M -Xmx2048M -Dpython.cachedir=%MIDPOINT_HOME%\tmp -Djavax.net.ssl.trustStore=%MIDPOINT_HOME%\keystore.jceks -Djavax.net.ssl.trustStoreType=jceks -Dmidpoint.home=%MIDPOINT_HOME% %cd%\lib\midpoint.war > %BOOT_OUT% 2>&1 &
goto end

:execStop
echo "%cd%\lib\midpoint.war"
FOR /F "usebackq tokens=5" %%i IN (`netstat -aon ^| findstr "0.0.0.0:8080"`) DO taskkill /F /PID %%i
FOR /F "usebackq tokens=5" %%i IN (`netstat -aon ^| findstr "0.0.0.0:8080"`) DO taskkill /F /PID %%i

:end

0 comments on commit c843f71

Please sign in to comment.