In Linux, ps -e used in make stop task produces only the process name without the argument. Should use ps -ef. (#1370)
This commit is contained in:
parent
d88e980b48
commit
dd180fdef7
1 changed files with 2 additions and 2 deletions
4
Makefile
4
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; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue