Fix run and stop sh for nslcm 99/87299/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 9 May 2019 02:02:34 +0000 (10:02 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 9 May 2019 02:02:34 +0000 (10:02 +0800)
Change-Id: I45848ab72d9a2cd6c2c6b0854fee8b32cf359b82
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
run.sh
stop.sh

diff --git a/run.sh b/run.sh
index a200ffc..920bfb3 100755 (executable)
--- 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 956579b..5c62cfb 100755 (executable)
--- 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