forked from ritzalam/red5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
red5.bat
38 lines (26 loc) · 1.08 KB
/
red5.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
SETLOCAL
if NOT DEFINED RED5_HOME set RED5_HOME=%~dp0
if NOT DEFINED RED5_MAINCLASS set RED5_MAINCLASS=org.red5.server.Bootstrap
if NOT DEFINED JAVA_HOME goto err
REM JAVA options
REM You can set JAVA_OPTS to add additional options if you want
REM Set up logging options
set LOGGING_OPTS=-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector -Dcatalina.useNaming=true
REM Set up security options
REM set SECURITY_OPTS= -Djava.security.debug=failure -Djava.security.manager -Djava.security.policy="%RED5_HOME%/conf/red5.policy"
set SECURITY_OPTS=-Djava.security.debug=failure
set JAVA_OPTS=%LOGGING_OPTS% %SECURITY_OPTS% %JAVA_OPTS%
set JYTHON_OPTS=-Dpython.home=lib
set RED5_CLASSPATH=%RED5_HOME%\boot.jar;%RED5_HOME%\conf;%CLASSPATH%
if NOT DEFINED RED5_OPTS set RED5_OPTS=
goto launchRed5
:launchRed5
echo Starting Red5
"%JAVA_HOME%\bin\java" %JYTHON_OPTS% %JAVA_OPTS% -cp "%RED5_CLASSPATH%" %RED5_MAINCLASS% %RED5_OPTS%
goto finally
:err
echo JAVA_HOME environment variable not set! Take a look at the readme.
pause
:finally
ENDLOCAL