[jboss-user] [Beginners Corner] - Re: Remote conenct JBoss AS
jaikiran
do-not-reply at jboss.com
Wed Jul 2 03:24:48 EDT 2008
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#4161951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161951
More information about the jboss-user
mailing list