awips2/javaUtilities/collaboration.dataserver/scriptBin/status.sh
Brad Gonzales cd22105a5e Issue #2886 Removed httpd-collaboration rpm Installation and added collab-dataserver
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: fe8e6a1fa1 [formerly 4fa60427b4] [formerly fe8e6a1fa1 [formerly 4fa60427b4] [formerly f0189d61ca [formerly d7466d36140c94b5ef4e57fea25526231912e018]]]
Former-commit-id: f0189d61ca
Former-commit-id: 907d09bc20 [formerly 3954cd6bae]
Former-commit-id: 69f7034551
2014-04-03 17:47:58 -05:00

44 lines
No EOL
1.3 KiB
Bash

#!/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
# ------------ ---------- ----------- --------------------------
# Apr 03, 2014 2886 bgonzale Initial creation
#
#
(cd $(dirname "$0")/..
PIDFILE=collabserver.pid
if [[ -e $PIDFILE ]]; then
PIDID=`cat $PIDFILE`
PROCESS=`ps --pid $PIDID -o args | grep -c "DataserverMain"`
if [ $PROCESS -eq 1 ]; then
echo "HTTP Collaboration Dataserver is running"
else
echo "HTTP Collaboration Dataserver is not running"
fi
else
echo "HTTP Collaboration Dataserver is not running"
fi
)