summaryrefslogtreecommitdiffstats
path: root/shorewall-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'shorewall-controller.lua')
-rw-r--r--shorewall-controller.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua
index 9e16912..6b47dbb 100644
--- a/shorewall-controller.lua
+++ b/shorewall-controller.lua
@@ -4,7 +4,7 @@ module(..., package.seeall)
-- We use the self.conf table because it already has prefix,controller,etc
-- The redir code is defined in the application error handler (acf-controller)
local list_redir = function (self)
- self.conf.action = "read"
+ self.conf.action = "status"
self.conf.type = "redir"
error (self.conf)
end
@@ -28,7 +28,7 @@ check = function(self)
end
-read = function(self)
+status = function(self)
if self.clientdata.cmd == "check" then
self.conf.action = "check"
self.conf.type = "redir"
@@ -37,7 +37,7 @@ read = function(self)
if self.clientdata.cmd == "restart" then
return ( {programstats = self.model:restart_service(), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller } )
end
- return ( {programstats = self.model:get_status(), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller } )
+ return ( {status = self.model:get_status(), url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller } )
end
advanced = function(self)