Fix run and stop sh for gvnfmdriver 09/87309/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 9 May 2019 02:29:03 +0000 (10:29 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 9 May 2019 02:29:03 +0000 (10:29 +0800)
Change-Id: Id846d2a3f70ae0be2f9b071347bd70eb1e84a46a
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
gvnfmadapter/run.sh
gvnfmadapter/stop.sh

index 6c9abc6..cb87753 100755 (executable)
@@ -26,8 +26,3 @@ else
     nohup uwsgi --http :8484 -t 120 --module driver.wsgi --master --processes 4 &
 fi
 
-while [ ! -f $logDir/runtime_gvnfmdriver.log ]; do
-    sleep 1
-done
-
-tail -F  $logDir/runtime_gvnfmdriver.log
index 463f8ca..709ea14 100755 (executable)
@@ -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:8484' | awk '{print $2}' | xargs kill -9
+# ps auxww | grep 'manage.py runserver 0.0.0.0:8484' | awk '{print $1}' | xargs kill -9
 ps auxww |grep 'uwsgi --http' |awk '{print $1}' |xargs kill -9