Fix stopping mattermost server (#18337)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0367492310
Коммит
57075c9cc0
6
Makefile
6
Makefile
@@ -89,7 +89,7 @@ GO_VERSION_VALIDATION_ERR_MSG = Golang version is not supported, please update t
|
|||||||
# GOOS/GOARCH of the build host, used to determine whether we're cross-compiling or not
|
# GOOS/GOARCH of the build host, used to determine whether we're cross-compiling or not
|
||||||
BUILDER_GOOS_GOARCH="$(shell $(GO) env GOOS)_$(shell $(GO) env GOARCH)"
|
BUILDER_GOOS_GOARCH="$(shell $(GO) env GOOS)_$(shell $(GO) env GOARCH)"
|
||||||
|
|
||||||
PLATFORM_FILES="./cmd/mattermost/main.go"
|
PLATFORM_FILES="./cmd/mattermost"
|
||||||
|
|
||||||
# Output paths
|
# Output paths
|
||||||
DIST_ROOT=dist
|
DIST_ROOT=dist
|
||||||
@@ -511,11 +511,11 @@ ifeq ($(BUILDER_GOOS_GOARCH),"windows_amd64")
|
|||||||
wmic process where "Caption='go.exe' and CommandLine like '%go.exe run%'" call terminate
|
wmic process where "Caption='go.exe' and CommandLine like '%go.exe run%'" call terminate
|
||||||
wmic process where "Caption='mattermost.exe' and CommandLine like '%go-build%'" call terminate
|
wmic process where "Caption='mattermost.exe' and CommandLine like '%go-build%'" call terminate
|
||||||
else
|
else
|
||||||
@for PID in $$(ps -ef | grep "[g]o run" | awk '{ print $$2 }'); do \
|
@for PID in $$(ps -ef | grep "[g]o run" | grep "mattermost" | awk '{ print $$2 }'); do \
|
||||||
echo stopping go $$PID; \
|
echo stopping go $$PID; \
|
||||||
kill $$PID; \
|
kill $$PID; \
|
||||||
done
|
done
|
||||||
@for PID in $$(ps -ef | grep "[g]o-build" | awk '{ print $$2 }'); do \
|
@for PID in $$(ps -ef | grep "[g]o-build" | grep "mattermost" | awk '{ print $$2 }'); do \
|
||||||
echo stopping mattermost $$PID; \
|
echo stopping mattermost $$PID; \
|
||||||
kill $$PID; \
|
kill $$PID; \
|
||||||
done
|
done
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user