summaryrefslogtreecommitdiffstats
path: root/squid-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'squid-controller.lua')
-rw-r--r--squid-controller.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/squid-controller.lua b/squid-controller.lua
index f6a90f2..1c093db 100644
--- a/squid-controller.lua
+++ b/squid-controller.lua
@@ -102,6 +102,8 @@ end
authentication = function( self )
+ local info = { status = { value = "stopped" }, version = { value = self.model.get_squid_version() }, srvctrl = { value = srvctrl} };
+
local option = { script = ENV["SCRIPT_NAME"],
prefix = self.conf.prefix,
controller = self.conf.controller,
@@ -139,9 +141,10 @@ authentication = function( self )
end
service.status = self.model.get_status()
+ info.status.value = service.status
service.config, service.error = self.model.get_basic_config()
- return ( cfe ({ option = option, service = service }) )
+ return ( cfe ({ option = option, service = service, info = info }) )
end
advanced = function( self )
@@ -197,6 +200,8 @@ end
ntlm = function( self )
+ local info = { status = { value = "stopped" }, version = { value = self.model.get_winbind_version() }, srvctrl = { value = srvctrl} };
+
local option = { script = ENV["SCRIPT_NAME"],
prefix = self.conf.prefix,
controller = self.conf.controller,
@@ -219,9 +224,10 @@ ntlm = function( self )
end
service.status = self.model.get_status_winbindd()
+ info.status.value = service.status
service.config = self.model.get_winbindd_config()
- return ( cfe ({ option = option, service = service }) )
+ return ( cfe ({ option = option, service = service, info = info }) )
end
saccess = function( self )