diff options
Diffstat (limited to 'dansguardian-controller.lua')
-rw-r--r-- | dansguardian-controller.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dansguardian-controller.lua b/dansguardian-controller.lua index 73813e1..d907f00 100644 --- a/dansguardian-controller.lua +++ b/dansguardian-controller.lua @@ -31,6 +31,8 @@ end general = 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, @@ -61,9 +63,10 @@ general = function( self ) end service.status = self.model.get_status() + info.status.value = service.status service.config, service.cfgerr = self.model.get_general_config() - return ( cfe ({ option = option, service = service }) ) + return ( cfe ({ option = option, service = service, info = info }) ) end advanced = function( self ) |