This commit is contained in:
parent
80408356a4
commit
3dd970b324
@ -1221,6 +1221,7 @@ delete_ip2route() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start_haproxy() {
|
start_haproxy() {
|
||||||
|
[ "$(config_t_get global_haproxy balancing_enable 0)" != "1" ] && return
|
||||||
haproxy_path=${TMP_PATH}/haproxy
|
haproxy_path=${TMP_PATH}/haproxy
|
||||||
haproxy_conf="config.cfg"
|
haproxy_conf="config.cfg"
|
||||||
lua $APP_PATH/haproxy.lua -path ${haproxy_path} -conf ${haproxy_conf}
|
lua $APP_PATH/haproxy.lua -path ${haproxy_path} -conf ${haproxy_conf}
|
||||||
|
@ -7,10 +7,6 @@ local jsonc = api.jsonc
|
|||||||
local uci = api.uci
|
local uci = api.uci
|
||||||
local sys = api.sys
|
local sys = api.sys
|
||||||
|
|
||||||
if uci:get_first(appname, 'global_haproxy', "balancing_enable", 0) ~= 1 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local log = function(...)
|
local log = function(...)
|
||||||
local result = os.date("%Y-%m-%d %H:%M:%S: ") .. table.concat({...}, " ")
|
local result = os.date("%Y-%m-%d %H:%M:%S: ") .. table.concat({...}, " ")
|
||||||
local f, err = io.open("/tmp/log/passwall.log", "a")
|
local f, err = io.open("/tmp/log/passwall.log", "a")
|
||||||
|
Loading…
Reference in New Issue
Block a user