rpm to replace it. Changed dependency references to httpd-collaboration to refer to collab-dataserver. Amend: Updated call to status in init script. Redirect start.sh error output to an error file. Use macro to define ant opts in component.spec. Change-Id: I73369dc3e9079a1732ae9d06229d3135f82ef2f4 Former-commit-id: d7466d36140c94b5ef4e57fea25526231912e018
51 lines
1.6 KiB
Bash
Executable file
51 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# This software was developed and / or modified by Raytheon Company,
|
|
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
#
|
|
# U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
# This software product contains export-restricted data whose
|
|
# export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
# to non-U.S. persons whether in the United States or abroad requires
|
|
# an export license or other authorization.
|
|
#
|
|
# Contractor Name: Raytheon Company
|
|
# Contractor Address: 6825 Pine Street, Suite 340
|
|
# Mail Stop B8
|
|
# Omaha, NE 68106
|
|
# 402.291.0100
|
|
#
|
|
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
# further licensing information.
|
|
#
|
|
#
|
|
# SOFTWARE HISTORY
|
|
# Date Ticket# Engineer Description
|
|
# ------------ ---------- ----------- --------------------------
|
|
# Mar 03, 2014 2756 bclement initial creation
|
|
# Mar 06, 2014 2756 bclement changed classpath to reflect new lib structure
|
|
# added log level change when debugging
|
|
#
|
|
#
|
|
|
|
if [[ $# > 0 && $1 == '-d' ]]
|
|
then
|
|
dbArg='-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5118'
|
|
logLevel='-Ddataserver.logging.level=DEBUG'
|
|
else
|
|
# defaults
|
|
dbArg=''
|
|
logLevel=''
|
|
fi
|
|
|
|
(cd $(dirname "$0")/..
|
|
PIDFILE=collabserver.pid
|
|
if [[ -e $PIDFILE ]]
|
|
then
|
|
echo "PID file already exists at $PIDFILE, exiting"
|
|
exit 1
|
|
fi
|
|
nohup java $dbArg $logLevel -server -cp lib/uframe/*:lib/foss/* com.raytheon.collaboration.dataserver.DataserverMain > /dev/null 2>collab-dataserver.err &
|
|
|
|
echo $! > $PIDFILE
|
|
)
|