awips2/rpms/awips2.qpid/0.18/SOURCES/qpid-wrapper
Steve Harris 8a1ea4d35f 14.1.1-10 baseline
Former-commit-id: 69cef95302 [formerly 8251107646] [formerly ca0f65bd9a] [formerly 69cef95302 [formerly 8251107646] [formerly ca0f65bd9a] [formerly 9248695a1f [formerly ca0f65bd9a [formerly 6970b56e5970df5cd40ddfc41470324d652f0afd]]]]
Former-commit-id: 9248695a1f
Former-commit-id: 2c49ed51ac [formerly e35ec60f7e] [formerly 3a680dda0eb4accc0f16a467d0582447a9f8a94f [formerly ef6e0b0304]]
Former-commit-id: 1da4cf492cf27e8f6e06f3cfbfcc4a4b3ce25255 [formerly 36d788890a]
Former-commit-id: ea65181d19
2013-11-19 16:40:25 -05:00

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}