summaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapter-utils/src/main/java/org
AgeCommit message (Expand)AuthorFilesLines
2018-02-27Make use of append instead of string concatenation
#!/bin/bash
tbold=$(tput setf 3)
bold=$(tput setf 2)
bold1=$(tput setf 2)
offbold=$(tput rmso;tput sgr0)

function pad {
        #echo "1 is $1 2 is $2"
        if [ "$1" == "" ]
        then
                $1 = "";
        fi
        let count=0
        curr_len=`expr length "$1"`
        let space_length=$2-$curr_len
        spaces=""
        while [ $count -lt $space_length ]
        do
                spaces="$spaces "
                let count=$count+1
        done
        echo "$1$spaces"
}
releaseDir=""
if [ "$#" == "1" ]
then
	releaseDir="$1"
fi

if [ -e "releases/${releaseDir}/customSettings.js" ]
then
		port=$(cat releases/${releaseDir}/customSettings.js|grep uiPort|sed -e 's/[, ]//g'|cut -d: -f2)
	kill $(cat releases/${releaseDir}/logs/process_pid  2>/dev/null) >/dev/null 2>&1
	if [ "$?" != "0" ]
	then
		#kill only if its a node-red process
		processPid=$(netstat -upltn 2>/dev/null|grep -w $port|awk '{print $NF}'|sed -e 's%/node-red%%g')
		kill $processPid 2>/dev/null
		echo "http://localhost:$port ---- STOPPED"
		./show_status.sh|grep -w "${releaseDir}"
	else
		echo "http://localhost:$port ---- STOPPED"
		./show_status.sh|grep -w "${releaseDir}"
	fi
else
	if [ "$releaseDir" != "" ]
	then
		echo "Release Directory ${releaseDir} not setup.";
	else
		echo "Usage:$0 releaseDirName"
	fi	
fi
vatar/d6f5c8675b40edc0995c51a814ff3a47?s=128&d=retro' />
Ramanjaneya-Huawei
1-3/+12
2017-10-19Use StringBuilderRamanjaneya-Huawei2-3/+9
2017-10-19Remove the declaration of thrown exceptionRamanjaneya-Huawei1-3/+1
2017-10-02Merge "Fixed major sonar issues"Seshu Kumar M1-6/+6
2017-09-27Replaced with the diamnod operatorrama-huawei3-4/+5
2017-09-26Fixed major sonar issuesshashikanth1-6/+6
2017-09-22Fix Blocker/Critical sonar issuesshashikanth1-3/+3
2017-09-18Fixed Issues In adapter code.seshukm4-35/+56
2017-09-12Fix for SONAR critical issuesseshukm3-17/+30
2017-09-11Fix for SONAR critical issuesseshukm2-1/+20
2017-09-11Change the header to SOSeshu-Kumar-M45-45/+45
2017-09-081710 Rebase - Second AttemptArthur Martella3-59/+456
2017-05-09[MSO-8] Additional fixes for the second rebaseDeterme, Sebastien (sd378r)3-208/+312
2017-05-02[MSO-8] Second step of the rebase for MSODeterme, Sebastien (sd378r)13-597/+608
2017-04-11Simplify MsoHeatEnvironmentParameter methodsGary Wu1-12/+3
2017-04-11[MSO-8] Update the maven dependencyxg353y20-70/+912
2017-04-10Remove unnecessary use of Calendar.getInstance()Gary Wu3-13/+7
2017-01-31Initial OpenECOMP MSO commitChrisC38-0/+6521