diff --git a/html/cgi-bin/loxilb.cgi b/html/cgi-bin/loxilb.cgi index 0187b4a77..bb926dbc1 100644 --- a/html/cgi-bin/loxilb.cgi +++ b/html/cgi-bin/loxilb.cgi @@ -87,24 +87,35 @@ if ($loxilbsettings{'ENABLE_LOXILB'} eq "on") { $checked = "checked='checked'"; } -# Print box to enable/disable locationblock. -print"
\n"; # &Header::closebigbox(); diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 7fd17c42b..2e09b5f7f 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -2455,6 +2455,7 @@ 'static routes' => 'Static Routes', 'loxilb' => 'eBPF LoxiLB Load Balancer', 'loxilb status' => 'Status', +'loxilb server status' => 'Current LoxiLB server status:', 'loxilb empty' => 'Field can not be empty', 'loxilb enable' => 'Enable Load Balancer', 'loxilb config' => 'LoxiLB Load Balancer Configuration', diff --git a/langs/zh/cgi-bin/zh.pl b/langs/zh/cgi-bin/zh.pl index 71708bafc..39e0c92ab 100644 --- a/langs/zh/cgi-bin/zh.pl +++ b/langs/zh/cgi-bin/zh.pl @@ -2422,6 +2422,7 @@ 'static routes' => '静态路由', 'loxilb' => 'eBPF LoxiLB 负载均衡', 'loxilb status' => '负载均衡启用状态', +'loxilb server status' => '负载均衡启用状态', 'loxilb empty' => '不能空', 'loxilb enable' => '启用 eBPF LoxiLB 负载均衡', 'loxilb config' => 'eBPF LoxiLB 负载均衡配置', diff --git a/src/initscripts/system/loxilb b/src/initscripts/system/loxilb index cc5676b58..0f49ac837 100755 --- a/src/initscripts/system/loxilb +++ b/src/initscripts/system/loxilb @@ -48,6 +48,10 @@ case "$1" in fi ;; + status) + statusproc /usr/bin/loxilb + ;; + restart) $0 stop sleep 1 diff --git a/src/misc-progs/loxilbctrl.c b/src/misc-progs/loxilbctrl.c index bd7636f4d..600226c2e 100644 --- a/src/misc-progs/loxilbctrl.c +++ b/src/misc-progs/loxilbctrl.c @@ -27,6 +27,8 @@ int main(int argc, char *argv[]) { safe_system("/etc/rc.d/init.d/loxilb start"); } else if (strcmp(argv[1], "stop") == 0) { safe_system("/etc/rc.d/init.d/loxilb stop"); + } else if (strcmp(argv[1], "status") == 0) { + safe_system("/etc/rc.d/init.d/loxilb status"); } else if (strcmp(argv[1], "restart") == 0) { safe_system("/etc/rc.d/init.d/loxilb restart"); } else {