12345678910111213141516171819202122232425262728 |
- #!/bin/sh
- 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
- echo "No nacosServer running."
- exit -1;
- fi
- echo "The nacosServer(${pid}) is running..."
- kill ${pid}
- echo "Send shutdown request to nacosServer(${pid}) OK"
|