The contents from service.bat that i posted were from an older version of JBossNative. For
the version you are using, the service.bat has to be edited as follows:
:cmdStart
| REM Executed on service start
| del .r.lock 2>&1 | findstr /C:"being used" > nul
| if not errorlevel 1 (
| echo Could not continue. Locking file already in use.
| goto cmdEnd
| )
| echo Y > .r.lock
| jbosssvc.exe -p 1 "Starting %SVCDISP%" > run.log
| call run.bat < .r.lock -b 0.0.0.0 >> run.log 2>&1
| .....
| ......
| some more lines from the bat file
|
| ....
| ....
| :cmdRestart
| REM Executed manually from command line
| REM Note: We can only stop and start
| echo Y > .s.lock
| jbosssvc.exe -p 1 "Shutting down %SVCDISP%" >> shutdown.log
| call shutdown -S < .s.lock >> shutdown.log 2>&1
| del .s.lock
| :waitRun
| REM Delete lock file
| del .r.lock > nul 2>&1
| REM Wait one second if lock file exist
| jbosssvc.exe -s 1
| if exist ".r.lock" goto waitRun
| echo Y > .r.lock
| jbosssvc.exe -p 1 "Restarting %SVCDISP%" >> run.log
| call run.bat < .r.lock -b 0.0.0.0 >> run.log 2>&1
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161951#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...