Skip to content
Permalink
Browse files

Convert developmental startup scripts to bash for compatibility with …

…PHP model
  • Loading branch information...
FUDCo committed Sep 18, 2016
1 parent be4aa44 commit e67a4addb339c6e7eb5fcd65435db3bcae14c1e8
@@ -24,7 +24,7 @@ HOST=${HOST:-`hostname`}

BIND=${BIND:-${HOST}}

MONGOHOST=${MONGOHOST:-127.0.0.1:27017}
MONGOHOST=${MONGOHOST:-localhost:27017}

TRACE_DIR=${TRACE_DIR:-.}

@@ -48,7 +48,7 @@ DIRE_PORT_BASE=${DIRE_PORT_BASE:-$((${PORT_BASE} + 60))}

JAVA_RUN=${JAVA_RUN:-"java -server -Xconcurrentio"}

SERVER_JARS=${DISTI}/elkoserver.jar${DELIM}${DISTE}/mongo.jar${DELIM}${DISTE}/ScalableSSL.jar${DELIM}${DISTI}/fakessl.jar
SERVER_JARS=${DISTI}/elkoserver.jar${DELIM}${DISTE}/mongo.jar${DELIM}${DISTE}/commons-codec.jar${DELIM}${DISTE}/ScalableSSL.jar${DELIM}${DISTI}/fakessl.jar

if [ ! $CLASSPATH ]; then
export CLASSPATH="${SERVER_JARS}"
@@ -1,17 +1,15 @@
#!/bin/csh
#!/bin/bash

source ../common/setenvvars

if (! ${?SERVER_NAME}) then
set SERVER_NAME=Broker
endif
SERVER_NAME=${SERVER_NAME:-Broker}

#set SERVER_HOST=${HOST}.${DOMAIN}
set SERVER_HOST=${HOST}
set SERVER_BIND=${HOST}
#SERVER_HOST=${HOST}.${DOMAIN}
SERVER_HOST=${HOST}
SERVER_BIND=${HOST}

@ PORT_OPEN = ${BRK_PORT_BASE}
@ PORT_PSWD = ${BRK_PORT_BASE} + 1
PORT_OPEN=$(( BROK_PORT_BASE ))
PORT_PSWD=$(( BROK_PORT_BASE + 1 ))

${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
trace_brok=EVENT \
@@ -1,4 +1,4 @@
#!/bin/csh
#!/bin/sh

setenv JAVA_RUN jdb
export JAVA_RUN=jdb
./start
@@ -1,4 +1,4 @@
#!/bin/csh
#!/bin/sh
source start.broker &
sleep 5
source start.gatekeeper &
@@ -1,45 +1,41 @@
#!/bin/csh
#!/bin/bash

source ../common/setenvvars

if (! ${?SERVER_NAME}) then
set SERVER_NAME=ContextServer
endif
SERVER_NAME=${SERVER_NAME:-ContextServer}

if (! ${?LOG_TAG}) then
set LOG_TAG=contlog
endif
LOG_TAG=${LOG_TAG:-contlog}

#set SERVER_HOST=${HOST}.${DOMAIN}
set SERVER_HOST=${HOST}
set SERVER_BIND=${HOST}
#SERVER_HOST=${HOST}.${DOMAIN}
SERVER_HOST=${HOST}
SERVER_BIND=${HOST}

@ PORT_OPEN_TCP = ${CONT_PORT_BASE}
@ PORT_OPEN_HTTP = ${CONT_PORT_BASE} + 1
@ PORT_OPEN_RTCP = ${CONT_PORT_BASE} + 2
@ PORT_RESV_TCP = ${CONT_PORT_BASE} + 3
@ PORT_RESV_HTTP = ${CONT_PORT_BASE} + 4
@ PORT_RESV_RTCP = ${CONT_PORT_BASE} + 5
@ PORT_INTERNAL = ${CONT_PORT_BASE} + 6
@ PORT_INTERNAL2 = ${CONT_PORT_BASE} + 7
#@ PORT_OPEN_WS = ${CONT_PORT_BASE} + 8
@ PORT_OPEN_WS = 8000
PORT_OPEN_TCP=$(( CONT_PORT_BASE ))
PORT_OPEN_HTTP=$(( CONT_PORT_BASE + 1 ))
PORT_OPEN_RTCP=$(( CONT_PORT_BASE + 2 ))
PORT_RESV_TCP=$(( CONT_PORT_BASE + 3 ))
PORT_RESV_HTTP=$(( CONT_PORT_BASE + 4 ))
PORT_RESV_RTCP=$(( CONT_PORT_BASE + 5 ))
PORT_INTERNAL=$(( CONT_PORT_BASE + 6 ))
PORT_INTERNAL2=$(( CONT_PORT_BASE + 7 ))
#PORT_OPEN_WS=$(( CONT_PORT_BASE + 8 ))
PORT_OPEN_WS=8000

@ DPORT = ${DIRE_PORT_BASE}
@ BPORT = ${BROK_PORT_BASE}
@ RPORT = ${REPO_PORT_BASE}
@ PPORT = ${PRES_PORT_BASE}
DPORT=${DIRE_PORT_BASE}
BPORT=${BROK_PORT_BASE}
RPORT=${REPO_PORT_BASE}
PPORT=${PRES_PORT_BASE}

${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
trace_cont=EVENT \
trace_comm=EVENT \
tracelog_tag=${LOG_TAG} \
tracelog_dir=${TRACE_DIR} \
# tracelog_rollover=daily \
`#tracelog_rollover=daily` \
\
# conf.comm.httptimeout=3000 \
`#conf.comm.httptimeout=3000` \
conf.comm.httptimeout=15 \
# conf.comm.httpselectwait=300 \
`#conf.comm.httpselectwait=300` \
conf.comm.httpselectwait=60 \
conf.comm.rtcptimeout=300 \
conf.comm.rtcpdisconntimeout=60 \
@@ -71,37 +67,37 @@ ${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
conf.listen4.protocol=ws \
conf.listen4.sock=test \
\
# conf.listen4.host=SUB:${SERVER_HOST}:${PORT_INTERNAL2} \
# conf.listen4.bind=SUB:${SERVER_BIND}:${PORT_INTERNAL2} \
# conf.listen4.protocol=zmq \
# conf.listen4.class=org.elkoserver.foundation.net.zmq.ZeroMQConnectionManager \
# conf.listen4.allow=internal \
# conf.listen4.auth.mode=password \
# conf.listen4.auth.code=secret \
`#conf.listen4.host=SUB:${SERVER_HOST}:${PORT_INTERNAL2}` \
`#conf.listen4.bind=SUB:${SERVER_BIND}:${PORT_INTERNAL2}` \
`#conf.listen4.protocol=zmq` \
`#conf.listen4.class=org.elkoserver.foundation.net.zmq.ZeroMQConnectionManager` \
`#conf.listen4.allow=internal` \
`#conf.listen4.auth.mode=password` \
`#conf.listen4.auth.code=secret` \
\
# conf.listen4.host=${SERVER_HOST}:${PORT_RESV_TCP} \
# conf.listen4.bind=${SERVER_BIND}:${PORT_RESV_TCP} \
# conf.listen4.protocol=tcp \
# conf.listen4.auth.mode=reservation \
`#conf.listen4.host=${SERVER_HOST}:${PORT_RESV_TCP}` \
`#conf.listen4.bind=${SERVER_BIND}:${PORT_RESV_TCP}` \
`#conf.listen4.protocol=tcp` \
`#conf.listen4.auth.mode=reservation` \
\
# conf.listen5.host=${SERVER_HOST}:${PORT_RESV_RTCP} \
# conf.listen5.bind=${SERVER_BIND}:${PORT_RESV_RTCP} \
# conf.listen5.protocol=rtcp \
# conf.listen5.auth.mode=reservation \
`#conf.listen5.host=${SERVER_HOST}:${PORT_RESV_RTCP}` \
`#conf.listen5.bind=${SERVER_BIND}:${PORT_RESV_RTCP}` \
`#conf.listen5.protocol=rtcp` \
`#conf.listen5.auth.mode=reservation` \
\
# conf.listen6.host=${SERVER_HOST}:${PORT_RESV_HTTP} \
# conf.listen6.bind=${SERVER_BIND}:${PORT_RESV_HTTP} \
# conf.listen6.protocol=http \
# conf.listen6.domain=${DOMAIN} \
# conf.listen6.root=test \
# conf.listen6.auth.mode=reservation \
`#conf.listen6.host=${SERVER_HOST}:${PORT_RESV_HTTP}` \
`#conf.listen6.bind=${SERVER_BIND}:${PORT_RESV_HTTP}` \
`#conf.listen6.protocol=http` \
`#conf.listen6.domain=${DOMAIN}` \
`#conf.listen6.root=test` \
`#conf.listen6.auth.mode=reservation` \
\
# conf.register.auto=true \
# conf.register.host=${SERVER_HOST}:${DPORT} \
# conf.load.time=300 \
# conf.context.reservationexpire=300 \
`#conf.register.auto=true` \
`#conf.register.host=${SERVER_HOST}:${DPORT}` \
`#conf.load.time=300` \
`#conf.context.reservationexpire=300` \
\
# conf.presence.host=${SERVER_HOST}:${PPORT} \
`#conf.presence.host=${SERVER_HOST}:${PPORT}` \
\
conf.broker.host=${SERVER_HOST}:${BPORT} \
\
@@ -1,4 +1,4 @@
#!/bin/csh
#!/bin/sh

setenv JAVA_RUN jdb
export JAVA_RUN=jdb
./start
16 Run/run.context_standalone/start 100644 → 100755
@@ -1,17 +1,15 @@
#!/bin/csh
#!/bin/bash

source ../common/setenvvars

if (! ${?SERVER_NAME}) then
set SERVER_NAME=ContextServer
endif
SERVER_NAME=${SERVER_NAME:-ContextServer}

set SERVER_HOST=${HOST}
set SERVER_BIND=${HOST}
SERVER_HOST=${HOST}
SERVER_BIND=${HOST}

@ PORT_OPEN_TCP = ${CONT_PORT_BASE}
@ PORT_OPEN_HTTP = ${CONT_PORT_BASE} + 1
@ PORT_OPEN_RTCP = ${CONT_PORT_BASE} + 2
PORT_OPEN_TCP=$(( CONT_PORT_BASE ))
PORT_OPEN_HTTP=$(( CONT_PORT_BASE + 1 ))
PORT_OPEN_RTCP=$(( CONT_PORT_BASE + 2 ))

${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
trace_cont=EVENT \
@@ -0,0 +1,4 @@
#!/bin/sh

export JAVA_RUN=jdb
./start
@@ -1,23 +1,19 @@
#!/bin/csh
#!/bin/bash

source ../common/setenvvars

if (! ${?SERVER_NAME}) then
set SERVER_NAME=Director
endif
SERVER_NAME=${SERVER_NAME:-Director}

if (! ${?LOG_TAG}) then
set LOG_TAG=dire
endif
LOG_TAG=${LOG_TAG:-dire}

set SERVER_HOST=${HOST}
set SERVER_BIND=${HOST}
SERVER_HOST=${HOST}
SERVER_BIND=${HOST}

@ PORT_CLIENT_TCP = ${DIRE_PORT_BASE}
@ PORT_CLIENT_RTCP = ${DIRE_PORT_BASE} + 1
@ PORT_SERVER_TCP = ${DIRE_PORT_BASE} + 2
PORT_CLIENT_TCP=$(( DIRE_PORT_BASE ))
PORT_CLIENT_RTCP=$(( DIRE_PORT_BASE + 1 ))
PORT_SERVER_TCP=$(( DIRE_PORT_BASE + 2 ))

@ BROKER_PORT = ${BROK_PORT_BASE} + 1
BROKER_PORT=$(( BROK_PORT_BASE + 1 ))

${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
trace_dire=EVENT \
@@ -43,7 +39,7 @@ ${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
conf.listen2.allow=any \
conf.listen2.protocol=tcp \
\
# conf.broker.host=${SERVER_HOST}:${BROKER_PORT} \
`#conf.broker.host=${SERVER_HOST}:${BROKER_PORT}` \
\
conf.director.name=${SERVER_NAME} \
conf.comm.jsonstrictness=true \
@@ -1,4 +1,4 @@
#!/bin/csh
#!/bin/sh

setenv JAVA_RUN jdb
export JAVA_RUN=jdb
./start
@@ -2,15 +2,13 @@

source ../common/setenvvars

if (! ${?SERVER_NAME}) then
set SERVER_NAME=Director
endif
SERVER_NAME=${SERVER_NAME:-Director}

set SERVER_HOST=${HOST}
set SERVER_BIND=${HOST}
SERVER_HOST=${HOST}
SERVER_BIND=${HOST}

@ PORT_OPEN = ${DIRE_PORT_BASE}
@ PORT_PSWD = ${DIRE_PORT_BASE} + 1
PORT_OPEN=$(( DIRE_PORT_BASE ))
PORT_PSWD=$(( DIRE_PORT_BASE + 1 ))

${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
trace_dire=DEBUG \
@@ -1,20 +1,18 @@
#!/bin/csh
#!/bin/bash

source ../common/setenvvars

if (! ${?SERVER_NAME}) then
set SERVER_NAME=Gatekeeper
endif
SERVER_NAME=${SERVER_NAME:-Gatekeeper}

#set SERVER_HOST=${HOST}.${DOMAIN}
set SERVER_HOST=${HOST}
set SERVER_BIND=${HOST}
#SERVER_HOST=${HOST}.${DOMAIN}
SERVER_HOST=${HOST}
SERVER_BIND=${HOST}

@ PORT_OPEN = ${GATE_PORT_BASE}
@ PORT_PSWD = ${GATE_PORT_BASE} + 1
PORT_OPEN=$(( GATE_PORT_BASE ))
PORT_PSWD=$(( GATE_PORT_BASE + 1 ))

@ DPORT = ${DIRE_PORT_BASE}
@ BPORT = ${BROK_PORT_BASE}
DPORT=${DIRE_PORT_BASE}
BPORT=${BROK_PORT_BASE}

${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
trace_gate=EVENT \
@@ -36,7 +34,7 @@ ${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
conf.listen1.allow=admin \
\
conf.gate.director.host=${SERVER_HOST}:${DPORT} \
# conf.gate.director.auto=true \
`#conf.gate.director.auto=true` \
\
conf.gate.odb=mongo \
conf.gate.odb.mongo.hostport=${MONGOHOST} \
@@ -1,4 +1,4 @@
#!/bin/csh
#!/bin/sh

setenv JAVA_RUN jdb
export JAVA_RUN=jdb
./start
@@ -1,17 +1,15 @@
#!/bin/csh
#!/bin/bash

source ../common/setenvvars

if (! ${?SERVER_NAME}) then
set SERVER_NAME=PresenceServer
endif
SERVER_NAME=${SERVER_NAME:-PresenceServer}

#set SERVER_HOST=${HOST}.${DOMAIN}
set SERVER_HOST=${HOST}
set SERVER_BIND=${HOST}
#SERVER_HOST=${HOST}.${DOMAIN}
SERVER_HOST=${HOST}
SERVER_BIND=${HOST}

@ PORT_OPEN = ${PRE_PORT_BASE}
@ PORT_PSWD = ${PRE_PORT_BASE} + 1
PORT_OPEN=$(( PRES_PORT_BASE ))
PORT_PSWD=$(( PRES_PORT_BASE + 1 ))

${JAVA_RUN} org.elkoserver.foundation.boot.Boot \
trace_pres=EVENT \
@@ -1,4 +1,4 @@
#!/bin/csh
#!/bin/sh

setenv JAVA_RUN jdb
export JAVA_RUN=jdb
./start
Oops, something went wrong.

0 comments on commit e67a4ad

Please sign in to comment.
You can’t perform that action at this time.