From c363c2c9e5fd2cad61d9f64bea3d1a911e13e987 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Thu, 9 May 2019 10:02:34 +0800 Subject: Fix run and stop sh for nslcm Change-Id: I45848ab72d9a2cd6c2c6b0854fee8b32cf359b82 Issue-ID: VFC-1306 Signed-off-by: fujinhua --- run.sh | 7 ------- stop.sh | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/run.sh b/run.sh index a200ffc6..920bfb3c 100755 --- a/run.sh +++ b/run.sh @@ -26,10 +26,3 @@ if [ "${SSL_ENABLED}" = "true" ]; then else nohup uwsgi --http :8403 -t 120 --module lcm.wsgi --uid onap --gid onap --master --processes 4 & fi - - -while [ ! -f $logDir/runtime_nslcm.log ]; do - sleep 1 -done - -tail -F $logDir/runtime_nslcm.log \ No newline at end of file diff --git a/stop.sh b/stop.sh index 956579b9..5c62cfb1 100755 --- a/stop.sh +++ b/stop.sh @@ -12,5 +12,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# ps auxww | grep "manage.py runserver 0.0.0.0:8403" | awk '{print $2}' | xargs kill -9 +# ps auxww | grep "manage.py runserver 0.0.0.0:8403" | awk '{print $1}' | xargs kill -9 ps auxww |grep 'uwsgi --http' |awk '{print $1}' |xargs kill -9 -- cgit 1.2.3-korg