aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-05-09 10:02:34 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-05-09 10:02:34 +0800
commitc363c2c9e5fd2cad61d9f64bea3d1a911e13e987 (patch)
treeb6bced99e27c03b6b3f6e4dd7167e14a0ef303ce
parent3f4119e9513002395f612b440710b1996696fb2a (diff)
Fix run and stop sh for nslcm
Change-Id: I45848ab72d9a2cd6c2c6b0854fee8b32cf359b82 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rwxr-xr-xrun.sh7
-rwxr-xr-xstop.sh2
2 files changed, 1 insertions, 8 deletions
diff --git a/run.sh b/run.sh
index a200ffc6..920bfb3c 100755
--- 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 956579b9..5c62cfb1 100755
--- 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