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:9ff7dd12aa
[formerlyfe8e6a1fa1
] [formerly4fa60427b4
] [formerly9ff7dd12aa
[formerlyfe8e6a1fa1
] [formerly4fa60427b4
] [formerlyf0189d61ca
[formerly4fa60427b4
[formerly d7466d36140c94b5ef4e57fea25526231912e018]]]] Former-commit-id:f0189d61ca
Former-commit-id:efb4981a15
[formerly907d09bc20
] [formerly 7c33a8781ee872ff0c5e225ac1d343ecd2c0eaee [formerly3954cd6bae
]] Former-commit-id: 2291558778d560b4564dfd6237e7c32f3bb038d2 [formerly69f7034551
] Former-commit-id:cd22105a5e
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
|
|
)
|