Hello,
     I sent this the other day, but I didn't see it come through the 
list for some reason.....  maybe because I sent an attachment?  Anyway, 
here it is again (i'll paste the file instead of attaching it this time)


Hiya,
     While I use linux, I am working with two other developers on 
windows 2000 machines.  To help them out, I hacked apart the tomcat 
batch file to work with orion.  I didn't spend much time on it, and it 
ain't pretty, but may be what you are looking for.  I have attached it 
to this message.

you will need to modify this line:
%_RUNJAVA% -jar admin.jar ormi://localhost admin 123 -shutdown force

and replace "admin" and "123" with your orion username/password (as 
defined in the orion/config/principles.xml file)

Bill

Here it is:

@echo off
rem 
-------------------------------------------------------------------------
rem orion.bat - Start/Stop Script for the Orion Server
rem
rem This is a batch files stolen from TOMCAT and modified to
rem be used with Orion.
rem
rem Environment Variable Prerequisites:
rem
rem   JAVA_HOME    Must point at your Java Development Kit installation.
rem   ORION_HOME   Must point at your Orion installation directory.
rem
rem $Id: $
rem 
-------------------------------------------------------------------------


rem ----- Verify and Set Required Environment Variables 
---------------------

if not "%JAVA_HOME%" == "" goto gotJavaHome
echo You must have set JAVA_HOME to point at your Java Development Kit 
installation
goto cleanup
:gotJavaHome

if not "%ORION_HOME%" == "" goto gotOrionHome
echo You must have set ORION_HOME to point at your Orion Server directory
goto cleanup
:gotOrionHome

rem ----- Prepare Appropriate Java Execution Commands 
-----------------------

if not "%OS%" == "Windows_NT" goto noTitle
set _SECSTARTJAVA=start "Secure Tomcat 3.2" "%JAVA_HOME%\bin\java"
set _STARTJAVA=start "Orion Server" "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
goto gotOS

:noTitle
set _SECSTARTJAVA=start "%JAVA_HOME%\bin\java"
set _STARTJAVA=start "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
:gotOS

rem ----- Execute The Requested Command 
-------------------------------------

if "%1" == "start" goto startServer
if "%1" == "stop" goto stopServer

:doUsage
echo Usage:  orion (start - stop)
echo Commands:
echo   start - Start Orion in a separate window
echo   stop -  Stop Orion
goto cleanup

:startServer
cd %ORION_HOME%
echo Starting Orion in new window
%_STARTJAVA% -jar orion.jar
goto cleanup

:stopServer
rem Stopping the Orion Server
cd %ORION_HOME%
%_RUNJAVA% -jar admin.jar ormi://localhost admin 123 -shutdown force
goto cleanup


:cleanup


Andre Vanha wrote:

>  
> 
> -----Original Message-----
> From: Rajiv R [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 20, 2001 7:20 AM
> To: Orion-Interest
> Subject: Shutting down orion server!
> 
> 
> Having started orion server, I shutdown using "Ctrl+C"........ is this
> correct way?
>  
> Can I make a file (something like a .bat file) which when run will shutdown
> the server?
>  
> thanx
> regards
> rajiv
>  
>  
> With Regards,
> Rajiv. R
> Systems Engineer,
> Wipro Technologies, ITPL, Bangalore
> Ph:91-80-8410470-479  Extn:6422
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.rajspace.org <http://www.rajspace.org> 
> _____________________________________________________
> Wipro Technologies
> The World's First SEI-CMM Level 5 Software Services Company
> _____________________________________________________
> ��`�.           .���`:
>  '�.   *`�.   .��*   .�'
>      `:--��   `�--:�
>        `�. ' '  .��
>          ;`�-��; 
> 
> 
> shutdown.bat
> 
> Content-Type:
> 
> application/octet-stream


Reply via email to