You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/03/12 09:20:16 UTC

[GitHub] asifdxtreme closed pull request #305: SCB-392 The stop script print error message

asifdxtreme closed pull request #305: SCB-392 The stop script print error message
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/305
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/scripts/release/start_scripts/linux/stop-service-center.sh b/scripts/release/start_scripts/linux/stop-service-center.sh
index 0e27b1f4..094eb9eb 100644
--- a/scripts/release/start_scripts/linux/stop-service-center.sh
+++ b/scripts/release/start_scripts/linux/stop-service-center.sh
@@ -15,4 +15,4 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-kill -9 $(ps aux | grep 'service-center' | awk '{print $2}')
+ps -o pid,cmd,args ax | grep 'service-center' | grep -v grep | awk '{print $1}' | xargs kill -9


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services