#1507 close server from current dir

This commit is contained in:
rushsky518 2019-08-01 15:25:25 +08:00
parent 32c2914959
commit 192610b4c9

View File

@ -13,7 +13,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
pid=`ps ax | grep -i 'nacos.nacos' |grep java | grep -v grep | awk '{print $1}'` cd `dirname $0`/../target
target_dir=`pwd`
pid=`ps ax | grep -i 'nacos.nacos' | grep ${target_dir} | grep java | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then if [ -z "$pid" ] ; then
echo "No nacosServer running." echo "No nacosServer running."
exit -1; exit -1;