From: fujinhua Date: Thu, 9 May 2019 02:25:26 +0000 (+0800) Subject: Fix run and stop sh for vnflcm X-Git-Tag: 1.3.1~4 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vfc%2Fgvnfm%2Fvnflcm.git;a=commitdiff_plain;h=d6dd15bbcf04877127f867176fa501f7662f7159 Fix run and stop sh for vnflcm Change-Id: I19f20f2a36db1716a692f2873c01f5533a635799 Issue-ID: VFC-1306 Signed-off-by: fujinhua --- diff --git a/lcm/run.sh b/lcm/run.sh index d7014a23..d417889e 100755 --- a/lcm/run.sh +++ b/lcm/run.sh @@ -26,8 +26,3 @@ else nohup uwsgi --http :8801 -t 120 --module lcm.wsgi --master --processes 4 & fi -while [ ! -f $logDir/runtime_lcm.log ]; do - sleep 1 -done - -tail -F $logDir/runtime_lcm.log diff --git a/lcm/stop.sh b/lcm/stop.sh index 099f555f..ecea10ee 100755 --- a/lcm/stop.sh +++ b/lcm/stop.sh @@ -13,5 +13,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -# ps auxww | grep 'manage.py runserver 0.0.0.0:8801' | awk '{print $2}' | xargs kill -9 +# ps auxww | grep 'manage.py runserver 0.0.0.0:8801' | awk '{print $1}' | xargs kill -9 ps auxww |grep 'uwsgi --http' |awk '{print $1}' |xargs kill -9 \ No newline at end of file