From 68135608b3518b7d3dbd852453061179f63d5e4f Mon Sep 17 00:00:00 2001 From: Baffin Lee Date: Tue, 14 Aug 2018 00:31:29 +0800 Subject: [PATCH] docs(deployment): fix typo on grep (#2898) --- docs/source/en/core/deployment.md | 2 +- docs/source/zh-cn/core/deployment.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/en/core/deployment.md b/docs/source/en/core/deployment.md index 916538e4fb..8c08c0a704 100644 --- a/docs/source/en/core/deployment.md +++ b/docs/source/en/core/deployment.md @@ -97,7 +97,7 @@ $ egg-scripts stop This command will kill master process which will handler and notice worker and agent to gracefull exit. -Also you can manually call `ps -eo "pid,command" | grep "--type=egg-server"` to find master process then `kill` without `-9`. +Also you can manually call `ps -eo "pid,command" | grep -- "--title=egg-server"` to find master process then `kill` without `-9`. [egg-cluster]: https://github.com/eggjs/egg-cluster [egg-scripts]: https://github.com/eggjs/egg-scripts diff --git a/docs/source/zh-cn/core/deployment.md b/docs/source/zh-cn/core/deployment.md index a1b9c0d221..65b77bcc9d 100644 --- a/docs/source/zh-cn/core/deployment.md +++ b/docs/source/zh-cn/core/deployment.md @@ -102,7 +102,7 @@ $ egg-scripts stop [--title=egg-server] 支持以下参数: - `--title=egg-server` 用于杀死指定的 egg 应用,未传递则会终止所有的 Egg 应用。 -你也可以直接通过 `ps -eo "pid,command" | grep "--type=egg-server"` 来找到 master 进程,并 `kill` 掉,无需 `kill -9`。 +你也可以直接通过 `ps -eo "pid,command" | grep -- "--title=egg-server"` 来找到 master 进程,并 `kill` 掉,无需 `kill -9`。 ## 监控