X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=stop.sh;h=f118622d87edc6fbf756690966e70596b1790308;hb=e6823a4405ecdf690598bae2148e356abb8a39b7;hp=e5335603203785c1183a8c555427f9bca8bbec88;hpb=0cd4e54ded5de005d5480d5b0d85535c1462b8eb;p=modeling%2Fetsicatalog.git diff --git a/stop.sh b/stop.sh index e533560..f118622 100755 --- a/stop.sh +++ b/stop.sh @@ -13,5 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -# ps auxww | grep "manage.py runserver 0.0.0.0:8806" | awk '{print $2}' | xargs kill -9 -ps auxww |grep 'uwsgi --http' |awk '{print $1}' |xargs kill -9 +# ps auxww | grep "manage.py runserver 0.0.0.0:8806" | awk '{print $1}' | xargs kill -9 +# ps auxww |grep 'uwsgi --http' |awk '{print $1}' |xargs kill -9 + +if [ "${SSL_ENABLED}" = "true" ]; then + ps auxww |grep 'uwsgi --https :8806' |awk '{print $1}' |xargs kill -9 +else + ps auxww |grep 'uwsgi --http :8806' |awk '{print $1}' |xargs kill -9 +fi