summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-05-09 10:27:54 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-05-09 10:27:54 +0800
commit3939c3632fc56974eded0c0642d2aee6a89a8307 (patch)
tree4f2b18126e26f6bee6c7279d3a0563a16e68dc42
parenta4fc79bbc5a8edec3ba8e43ef28e6d59eac74692 (diff)
Fix run and stop sh for vnfres
Change-Id: Id114b7582b8207256a0271fb8cef3542d2180261 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rwxr-xr-xres/run.sh5
-rwxr-xr-xres/stop.sh2
2 files changed, 1 insertions, 6 deletions
diff --git a/res/run.sh b/res/run.sh
index 63f0850..77beb8a 100755
--- a/res/run.sh
+++ b/res/run.sh
@@ -26,8 +26,3 @@ else
nohup uwsgi --http :8802 -t 120 --module res.wsgi --master --processes 4 &
fi
-while [ ! -f $logDir/runtime_res.log ]; do
- sleep 1
-done
-
-tail -F $logDir/runtime_res.log
diff --git a/res/stop.sh b/res/stop.sh
index 2be7a39..26157c4 100755
--- a/res/stop.sh
+++ b/res/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:8802' | awk '{print $2}' | xargs kill -9
+#ps auxww | grep 'manage.py runserver 0.0.0.0:8802' | awk '{print $1}' | xargs kill -9
ps auxww |grep 'uwsgi --http' |awk '{print $1}' |xargs kill -9