Imported sources from subversion.

This commit is contained in:
Ricardo Martins
2013-07-13 17:19:22 +01:00
commit 12d63d1569
455 changed files with 69857 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
############################################################################
# omniORB (4.0 or above) configuration file #
############################################################################
traceExceptions = 0
traceInvocations = 0
traceInvocationReturns = 0
traceThreadId = 0
traceTime = 0
dumpConfiguration = 0
maxGIOPVersion = 1.2
giopMaxMsgSize = 2097152 # 2 MBytes.
strictIIOP = 1
lcdMode = 0
tcAliasExpand = 0
useTypeCodeIndirections = 1
acceptMisalignedTcIndirections = 0
scanGranularity = 5
nativeCharCodeSet = ISO-8859-1
nativeWCharCodeSet = UTF-16
abortOnInternalError = 0
validateUTF8 = 0
# Client Side Options
InitRef = NameService=corbaname::localhost
clientCallTimeOutPeriod = 0
clientConnectTimeOutPeriod = 0
supportPerThreadTimeOut = 0
resetTimeOutOnRetries = 0
outConScanPeriod = 120
maxGIOPConnectionPerServer = 5
oneCallPerConnection = 1
maxInterleavedCallsPerConnection = 5
offerBiDirectionalGIOP = 0
diiThrowsSysExceptions = 0
verifyObjectExistsAndType = 1
giopTargetAddressMode = 0
immediateAddressSwitch = 0
bootstrapAgentPort = 900
# Server Side Options
serverCallTimeOutPeriod = 0
inConScanPeriod = 180
threadPerConnectionPolicy = 1
maxServerThreadPerConnection = 100
maxServerThreadPoolSize = 100
threadPerConnectionUpperLimit = 10000
threadPerConnectionLowerLimit = 9000
threadPoolWatchConnection = 1
connectionWatchPeriod = 50000
connectionWatchImmediate = 0
acceptBiDirectionalGIOP = 0
unixTransportDirectory = /tmp/omni-%u
unixTransportPermission = 0777
supportCurrent = 1
copyValuesInLocalCalls = 1
objectTableSize = 0
poaHoldRequestTimeout = 0
poaUniquePersistentSystemIds = 1
idleThreadTimeout = 10
supportBootstrapAgent = 0

View File

@@ -0,0 +1,57 @@
# Program options
NAME=omniNames
DAEMON=/usr/bin/omniNames
OMNINAMES_DIR=/var/omninames
test -f $DAEMON || exit 5
start()
{
# Make sure directories exist (NEED AN RW FS!)
if [ ! -d $OMNINAMES_DIR ]; then
mkdir -p $OMNINAMES_DIR
fi
pid=$(pidof ${NAME})
if [ ! -z "$pid" ]; then
echo " Impossible: already running (pid $(pidof ${NAME}))"
else
OMNINAMES_OPTIONS="-errlog $OMNINAMES_DIR/error.log -logdir $OMNINAMES_DIR"
# First time?
if [ ! -f $OMNINAMES_DIR/omninames-*.log ]; then
OMNINAMES_OPTIONS="$OMNINAMES_OPTIONS -start $TCPPORT"
fi
# Run it
$DAEMON $OMNINAMES_OPTIONS &> /dev/null &
# Sleep a while, and then check if omniNames is still running
sleep 2
if [ ! -z "`pidof ${NAME}`" ]; then
echo " Starting ${NAME} (PID=$(pidof ${NAME})) [OK]"
else
echo " Starting ${NAME} [KO]"
fi
fi
}
stop()
{
pid=$(pidof ${NAME})
if [ -z "${pid}" ]; then
echo " Impossible: process ${NAME} is not running..."
else
echo -n " Stopping ${NAME}... "
kill ${pid}
while [ -n "`pidof ${NAME}`" ]; do
sleep 1
done
echo " Done! "
fi
}