Former-commit-id:69cef95302
[formerly8251107646
] [formerlyca0f65bd9a
] [formerly69cef95302
[formerly8251107646
] [formerlyca0f65bd9a
] [formerly9248695a1f
[formerlyca0f65bd9a
[formerly 6970b56e5970df5cd40ddfc41470324d652f0afd]]]] Former-commit-id:9248695a1f
Former-commit-id:2c49ed51ac
[formerlye35ec60f7e
] [formerly 3a680dda0eb4accc0f16a467d0582447a9f8a94f [formerlyef6e0b0304
]] Former-commit-id: 1da4cf492cf27e8f6e06f3cfbfcc4a4b3ce25255 [formerly36d788890a
] Former-commit-id:ea65181d19
51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
|
|
# this version of the qpid start script will utilize the yajsw wrapper
|
|
|
|
CONF_FILE="wrapper.conf"
|
|
|
|
WHEREAMI=`dirname $0`
|
|
if [ -z "$QPID_HOME" ]; then
|
|
export QPID_HOME=`cd $WHEREAMI/../ && pwd`
|
|
fi
|
|
|
|
if [ -z "$QPID_WORK" ]; then
|
|
export QPID_WORK=$QPID_HOME
|
|
fi
|
|
|
|
if [ -z "${QPID_PID_FILENAME}" ]; then
|
|
export QPID_PID_FILENAME="qpid-server.pid"
|
|
fi
|
|
|
|
# Set other variables used by the wrapper
|
|
export JAVA=/awips2/java/bin/java \
|
|
JAVA_VM=-server \
|
|
AMQJ_LOGGING_LEVEL=info \
|
|
QPID_PNAME=" -DPNAME=QPBRKR" \
|
|
CONSOLE_LOGLEVEL=DEBUG
|
|
|
|
if [ ! -f ${JAVA} ]; then
|
|
echo "ERROR: the specified Java does not exist - ${JAVA}."
|
|
echo "Unable to Continue ... Terminating."
|
|
exit 1
|
|
fi
|
|
|
|
$JAVA -Xmx32m -XX:MaxPermSize=12m -XX:ReservedCodeCacheSize=4m -jar ${QPID_HOME}/bin/yajsw/wrapper.jar -c ${QPID_HOME}/conf/${CONF_FILE}
|