#!/bin/bash
basepath=$(cd `dirname $0`; pwd)
pid=`ps -ef|grep "${basepath}/nps"|grep -v grep|grep -v PPID|awk '{ print $2}'`
if [[ -n ${pid} ]];then
	kill -9 $pid
	echo "已经关闭 $pid"
fi
