diff options
author | Timoney, Dan (dt5972) <dtimoney@att.com> | 2018-11-06 14:15:05 -0500 |
---|---|---|
committer | Timoney, Dan (dt5972) <dtimoney@att.com> | 2018-11-06 14:16:18 -0500 |
commit | d9642fafddbaa28789339e1989c4583af003a193 (patch) | |
tree | 0442af1ba4e793433fac5871dd8e69c98a056446 /dgbuilder/stop.sh | |
parent | 33d814f236d4c3e4246851c810bdbbab5090abbb (diff) |
Fix license issues
Fix license definition in package.json files
Remove obsolete dgbuilder from SDNC (dgbuilder now in CCSDK)
Change-Id: Iee0bf9468f081c5957eae2e873efbea6fb6be354
Issue-ID: SDNC-489
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Former-commit-id: 4e104ac4183dd46124753c4571939e765a124508
Diffstat (limited to 'dgbuilder/stop.sh')
-rwxr-xr-x | dgbuilder/stop.sh | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/dgbuilder/stop.sh b/dgbuilder/stop.sh deleted file mode 100755 index b67babc0..00000000 --- a/dgbuilder/stop.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/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 |