From dd180fdef7eb3dba44b6ccfb322a5363dda0a5a9 Mon Sep 17 00:00:00 2001 From: Chang Phui-Hock Date: Thu, 25 Jan 2018 05:35:40 +0800 Subject: [PATCH] In Linux, ps -e used in make stop task produces only the process name without the argument. Should use ps -ef. (#1370) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a9e20209f..07d921ad8 100644 --- a/Makefile +++ b/Makefile @@ -94,8 +94,8 @@ start: | pre-run ## Starts the React Native packager server stop: ## Stops the React Native packager server @echo Stopping React Native packager server - @if [ $(shell ps -e | grep -i "cli.js start" | grep -civ grep) -eq 1 ]; then \ - ps -e | grep -i "cli.js start" | grep -iv grep | awk '{print $$1}' | xargs kill -9; \ + @if [ $(shell ps -ef | grep -i "cli.js start" | grep -civ grep) -eq 1 ]; then \ + ps -ef | grep -i "cli.js start" | grep -iv grep | awk '{print $$2}' | xargs kill -9; \ echo React Native packager server stopped; \ else \ echo No React Native packager server running; \