[jboss-user] [Beginners Corner] - Re: Remote conenct JBoss AS
gan.gary
do-not-reply at jboss.com
Wed Jul 2 02:32:12 EDT 2008
"jaikiran" wrote : service.bat acts just like a wrapper over the run.bat. So edit your service.bat to include the -b option as follows:
|
| :cmdStart
| | REM Executed on service start
| | call run.bat -b 0.0.0.0>run.log
| |
|
|
| :cmdRestart
| | REM Executed on service restart
| | REM Note. We can only stop and start
| | call shutdown -S >>shutdown.log
| | call run.bat -b 0.0.0.0 >>run.log
| | goto cmdEnd
| |
thanks!
cmdRestart? I found the places call the "run.bat" is on:
: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 >> run.log 2>&1
| jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log
| del .r.lock
| goto cmdEnd
: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 >> run.log 2>&1
| jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log
| del .r.lock
| goto cmdEnd
why on cmdRestart?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161934#4161934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161934
More information about the jboss-user
mailing list