diff options
author | Chinthakayala, Sheshashailavas <sc2914@att.com> | 2017-04-07 08:18:56 -0900 |
---|---|---|
committer | Chinthakayala, Sheshashailavas <sc2914@att.com> | 2017-04-07 08:21:54 -0900 |
commit | 4cc1e4b946aedcf6c34550d1903e9bd13e6e160b (patch) | |
tree | 4f3369f83f381734fb9aebc3ae9d8ed026c21c99 /dgbuilder/stop | |
parent | 76825594b6c95cf09d5142c0f9384a5b2bf9721e (diff) |
[SDNC-5] added yang upload
and added break node
Change-Id: I8d36b5d400a51a6ebc248b100f04284cf27abcad
Signed-off-by: Chinthakayala, Sheshashailavas <sc2914@att.com>
Former-commit-id: ae6804f3c5805f78198b26de88ceb6dfa9bb335b
Diffstat (limited to 'dgbuilder/stop')
-rwxr-xr-x | dgbuilder/stop | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/dgbuilder/stop b/dgbuilder/stop deleted file mode 100755 index 9d0591a4..00000000 --- a/dgbuilder/stop +++ /dev/null @@ -1,51 +0,0 @@ -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|grep -w "${releaseDir}" - else - echo "http://localhost:$port ---- STOPPED" - ./show_status|grep -w "${releaseDir}" - fi -else - if [ "$releaseDir" != "" ] - then - echo "Release Directory ${releaseDir} not setup."; - else - echo "Usage:$0 releaseDirName" - fi -fi |