You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2019/10/30 12:37:03 UTC
[incubator-apisix] branch master updated: CLI: added restart apisix
server command (#765)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new b49b03d CLI: added restart apisix server command (#765)
b49b03d is described below
commit b49b03d86300f704fb57eb7502c1b65c03c05d3f
Author: Geikiy <ge...@qq.com>
AuthorDate: Wed Oct 30 20:36:56 2019 +0800
CLI: added restart apisix server command (#765)
---
bin/apisix | 6 ++++++
doc/dev-manual-cn.md | 1 +
doc/dev-manual.md | 1 +
3 files changed, 8 insertions(+)
diff --git a/bin/apisix b/bin/apisix
index d6f97a2..e6064d8 100755
--- a/bin/apisix
+++ b/bin/apisix
@@ -450,6 +450,7 @@ init: initialize the local nginx.conf
init_etcd: initialize the data of etcd
start: start the apisix server
stop: stop the apisix server
+restart: restart the apisix server
reload: reload the apisix server
version: print the version of apisix
]])
@@ -564,6 +565,11 @@ function _M.stop()
os.execute(cmd)
end
+function _M.restart()
+ _M.stop()
+ _M.start()
+end
+
function _M.reload()
local test_cmd = openresty_args .. [[ -t -q ]]
if os.execute((test_cmd)) ~= 0 then
diff --git a/doc/dev-manual-cn.md b/doc/dev-manual-cn.md
index 5324d33..c683681 100644
--- a/doc/dev-manual-cn.md
+++ b/doc/dev-manual-cn.md
@@ -87,6 +87,7 @@ Makefile rules:
init: Initialize the runtime environment
run: Start the apisix server
stop: Stop the apisix server
+ restart: restart the apisix server
clean: Remove generated files
reload: Reload the apisix server
install: Install the apisix
diff --git a/doc/dev-manual.md b/doc/dev-manual.md
index 869b612..3b6e822 100644
--- a/doc/dev-manual.md
+++ b/doc/dev-manual.md
@@ -87,6 +87,7 @@ Makefile rules:
init: Initialize the runtime environment
run: Start the apisix server
stop: Stop the apisix server
+ restart: restart the apisix server
clean: Remove generated files
reload: Reload the apisix server
install: Install the apisix