Mauro Talevi wrote:
> 
> I think it's a good idea to provide these bat files, but I would propose 
> something similar to
> the Unix camp, ie:
> 1) a run.bat which runs phoenix in foreground (as run.sh)
> 2) a phoenix.bat which has different options to launch using the wrapper
> (eg, launch | install | uninstall )
> 
> Cheers, Mauro

Attached is an example of this... would it work for you? It surely needs 
some polishing before a release though, but could be a start ;)

I used it for an example setup script for Phoenix on windows. I made 
links to it from the start menu with the different parameters. Sadly I'm 
not satisfied with the install system yet :(

//
Johan
@echo off
rem -------------------------------------------------------------------------
rem 
rem  phoenix.bat - Control script for the Avalon Phoenix application server.
rem                
rem
rem  The Java Service Wrapper is used for Windows service management
rem
rem ------------------------------------------------------------------------

if "%1" == "start" goto startService
if "%1" == "stop" goto stopService
if "%1" == "restart" goto restartService
if "%1" == "runWrapper" goto runWrapper
if "%1" == "runNoWrapper" goto runNoWrapper
if "%1" == "uninstall" goto uninstallService
if "%1" == "install" goto installService
if "%1" == "help" goto help

:help
echo Usage:  phoenix.bat ^( start ^| stop ^| restart ^| runWrapper ^| runNoWrapper ^| 
help ^| uninstall ^| install )
echo  Commands:
echo    start        - Start the Phoenix service.
echo    stop         - Stop the Phoenix service.
echo    restart      - Restart the Phoenix service.
echo    runWrapper   - Start Phoenix in the current console window.
echo    runNoWrapper - Start Phoenix directly from the console
echo    help         - Print this help message.
echo    uninstall    - Uninstall the Phoenix service.
echo    install      - Install the Phoenix service.
goto exit


:startService
net start Phoenix
goto exit


:stopService
net stop Phoenix
goto exit


:restartService
net stop Phoenix
net start Phoenix
goto exit


:runWrapper
Wrapper.exe -c ..\conf\wrapper.conf
goto exit


:runNoWrapper
run.bat
goto exit


:uninstallService
Wrapper.exe -r ..\conf\wrapper.conf
goto exit


:installService
Wrapper.exe -i ..\conf\wrapper.conf
goto exit


:exit

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to