mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-03 12:37:36 +08:00
CLI: added restart apisix server command (#765)
This commit is contained in:
parent
57dc701937
commit
b49b03d863
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user