Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 committed Jan 8, 2024
1 parent 2fc12d1 commit 01b9c83
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions apisix/cli/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,25 +153,6 @@ local function get_lua_path(conf)
end


local function cleanup_unix_sockets(env)
local events_http_sock_path = env.apisix_home .. "/conf/worker_events.sock"
if pl_path.exists(events_http_sock_path) then
local ok, err = os_remove(events_http_sock_path)
if not ok then
util.die("failed to remove stale worker events sock file, error: ", err)
end
end

local events_stream_sock_path = env.apisix_home .. "/conf/stream_worker_events.sock"
if pl_path.exists(events_stream_sock_path) then
local ok, err = os_remove(events_stream_sock_path)
if not ok then
util.die("failed to remove stale stream worker events sock file, error: ", err)
end
end
end


local function init(env)
if env.is_root_path then
print('Warning! Running apisix under /root is only suitable for '
Expand Down Expand Up @@ -769,8 +750,6 @@ Please modify "admin_key" in conf/config.yaml .
if not ok then
util.die("failed to update nginx.conf: ", err, "\n")
end

cleanup_unix_sockets(env)
end


Expand Down

0 comments on commit 01b9c83

Please sign in to comment.