Skip to content

Commit

Permalink
Merge pull request #1813 from rushsky518/single_shutdown
Browse files Browse the repository at this point in the history
shutdown.sh, close server from current dir
  • Loading branch information
nkorange authored Sep 6, 2019
2 parents 04af15e + b2504fd commit 3196bde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distribution/bin/shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
# 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.
cd `dirname $0`/../target
target_dir=`pwd`

pid=`ps ax | grep -i 'nacos.nacos' |grep java | grep -v grep | awk '{print $1}'`
pid=`ps ax | grep -i 'nacos.nacos' | grep ${target_dir} | grep java | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then
echo "No nacosServer running."
exit -1;
Expand Down

0 comments on commit 3196bde

Please sign in to comment.