summaryrefslogtreecommitdiffstats
path: root/dansguardian-controller.lua
diff options
context:
space:
mode:
authorAndreas Brodmann <andreas.brodmann@gmail.com>2008-01-16 13:31:59 +0000
committerAndreas Brodmann <andreas.brodmann@gmail.com>2008-01-16 13:31:59 +0000
commita6120a0548246e75dbc247e15326821a7043df34 (patch)
treec2dfcbabd347a680fa1617381006176a4f52fc7d /dansguardian-controller.lua
parent2e98280f07da84950af2fa5c2cdadfedf3590c05 (diff)
downloadacf-squid-a6120a0548246e75dbc247e15326821a7043df34.tar.bz2
acf-squid-a6120a0548246e75dbc247e15326821a7043df34.tar.xz
updates to the squid/dansguardian gui, e.g. get_version stuff, unified the apps to look the same as the others
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@589 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dansguardian-controller.lua')
-rw-r--r--dansguardian-controller.lua5
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 )