mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-18 17:33:31 +00:00
fix luci-app-haproxy-tcp running issue
This commit is contained in:
parent
1c205c0866
commit
1b64bd2477
@ -16,7 +16,7 @@ stop(){
|
||||
}
|
||||
start(){
|
||||
echo "starting haproxy"
|
||||
logger -t alex restarting haproxy
|
||||
logger -t restarting haproxy
|
||||
echo global > $CFG_FILE
|
||||
cat >> $CFG_FILE <<EOF
|
||||
log 127.0.0.1 local0 #[日志输出配置,所有日志都记录在本机,通过local0输出]
|
||||
@ -112,7 +112,7 @@ restart(){
|
||||
echo luci for haproxy
|
||||
sleep 1s
|
||||
local vt_enabled=`uci get haproxy.@arguments[0].enabled 2>/dev/null`
|
||||
logger -t alex !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!haproxy is initializing enabled is $vt_enabled
|
||||
logger -t haproxy is initializing enabled is $vt_enabled
|
||||
echo $vt_enabled
|
||||
if [ "$vt_enabled" = 1 ]; then
|
||||
[ -f /etc/haproxy_backup ] && {
|
||||
|
7
package/lean/luci-app-haproxy-tcp/files/etc/uci-defaults/z99-haproxy
Executable file
7
package/lean/luci-app-haproxy-tcp/files/etc/uci-defaults/z99-haproxy
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
/etc/init.d/haproxy disable
|
||||
/etc/init.d/haproxy stop
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user