summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-05-09 10:25:26 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-05-09 10:25:26 +0800
commitd6dd15bbcf04877127f867176fa501f7662f7159 (patch)
tree0a0a17135922e0aab2d6792570ce3fdba7464cff
parentf643d0b9eb41c020bce51c61c6e4e4ae5d40a552 (diff)
Fix run and stop sh for vnflcm
Change-Id: I19f20f2a36db1716a692f2873c01f5533a635799 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rwxr-xr-xlcm/run.sh5
-rwxr-xr-xlcm/stop.sh2
2 files changed, 1 insertions, 6 deletions
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