diff options
Diffstat (limited to 'dansguardian-controller.lua')
-rw-r--r-- | dansguardian-controller.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dansguardian-controller.lua b/dansguardian-controller.lua index d907f00..0d6c7e8 100644 --- a/dansguardian-controller.lua +++ b/dansguardian-controller.lua @@ -70,7 +70,9 @@ general = function( self ) end advanced = function( self ) - + + local info = { status = { value = "stopped" }, version = { value = self.model.get_dansguardian_version() }, srvctrl = { value = srvctrl} }; + local option = { script = ENV["SCRIPT_NAME"], prefix = self.conf.prefix, controller = self.conf.controller, @@ -88,9 +90,10 @@ advanced = function( self ) end service.status = self.model.get_status() + info.status.value = service.status service.config, service.cfgerr = self.model.get_advanced_config() - return ( cfe ({ option = option, service = service }) ) + return ( cfe ({ option = option, service = service, info = info }) ) end plain = function( self ) |