3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Stop opnfv-testapi server
9 proc_number=`ps -ef | grep opnfv-testapi | grep -v grep | wc -l`
11 if [ $proc_number -gt 0 ]; then
12 procs=`ps -ef | grep opnfv-testapi | grep -v grep`
13 echo "Kill opnfv-testapi server $procs"
14 ps -ef | grep opnfv-testapi | grep -v grep | awk '{print $2}' | xargs kill -kill &>/dev/null