Community
Participate
Working Groups
#
# If TPTP_AC_HOME is not set then we assume we are running from bin.
# If TPTP_AC_HOME is not set then set it to the parent directory of the directory containing this script
if [ "$TPTP_AC_HOME" = "" ]; then
if [ -z $TPTP_AC_HOME ]; then
TPTP_AC_HOME=..
TPTP_AC_HOME=`dirname $0`/..
export TPTP_AC_HOME
fi
PATH=$TPTP_AC_HOME/bin:$PATH
# Start the ACServer
RUNNING=`ps -ae | grep "ACServer" | wc -l`
if [ $RUNNING != "0" ];then
if [ $RUNNING -ne 0 ];then
ps -ae | grep "ACServer" | awk '{
print "The server is already running on pid " $1
}'
# Check if ACServer is running by querying the system process list
ps -ae | grep "ACServer" | wc -l | awk '{
if( $1!="0" ) {
if( $1 -ne 0 ) {
print "ACServer started successfully."
exit 0
}
# ACStop.sh - Stops the Agent Controller server process if it is running.
ACServer -shutdown
echo "ACServer stopped."