snapshot of https://github.com/jitsi/jitsi-videobridge.git @ fcbf741c646bc237d2ed85a1e86910532532b831 (2026-09-15)
This commit is contained in:
14
jvb/resources/jvb.bat
Normal file
14
jvb/resources/jvb.bat
Normal file
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
|
||||
:begin
|
||||
|
||||
:: needed to overcome weird loop behavior in conjunction with variable expansion
|
||||
SETLOCAL enabledelayedexpansion
|
||||
|
||||
set mainClass=org.jitsi.videobridge.MainKt
|
||||
set cp=jitsi-videobridge.jar
|
||||
FOR %%F IN (lib/*.jar) DO (
|
||||
SET cp=!cp!;lib/%%F%
|
||||
)
|
||||
|
||||
java -Djava.util.logging.config.file=lib/logging.properties -Djdk.tls.ephemeralDHKeySize=2048 -cp %cp% %mainClass% %*
|
||||
22
jvb/resources/jvb.sh
Executable file
22
jvb/resources/jvb.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
mainClass="org.jitsi.videobridge.MainKt"
|
||||
cp=$SCRIPT_DIR/jitsi-videobridge.jar:$SCRIPT_DIR/lib/*
|
||||
logging_config="$SCRIPT_DIR/lib/logging.properties"
|
||||
videobridge_rc="$SCRIPT_DIR/lib/videobridge.rc"
|
||||
|
||||
# if there is a logging config file in lib folder use it (running from source)
|
||||
if [ -f $logging_config ]; then
|
||||
LOGGING_CONFIG_PARAM="-Djava.util.logging.config.file=$logging_config"
|
||||
fi
|
||||
|
||||
if [ -f $videobridge_rc ]; then
|
||||
source $videobridge_rc
|
||||
fi
|
||||
|
||||
if [ -z "$VIDEOBRIDGE_MAX_MEMORY" ]; then VIDEOBRIDGE_MAX_MEMORY=3072m; fi
|
||||
if [ -z "$VIDEOBRIDGE_GC_TYPE" ]; then VIDEOBRIDGE_GC_TYPE=G1GC; fi
|
||||
|
||||
exec java -Xmx$VIDEOBRIDGE_MAX_MEMORY $VIDEOBRIDGE_DEBUG_OPTIONS -XX:+Use$VIDEOBRIDGE_GC_TYPE -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Djdk.tls.ephemeralDHKeySize=2048 $LOGGING_CONFIG_PARAM $JAVA_SYS_PROPS -cp $cp $mainClass $@
|
||||
Reference in New Issue
Block a user