CLI: added restart apisix server command (#765)

This commit is contained in:
Geikiy 2019-10-30 20:36:56 +08:00 committed by YuanSheng Wang
parent 57dc701937
commit b49b03d863
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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