summaryrefslogtreecommitdiffstats
path: root/postfix-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:33:04 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:33:04 +0000
commit027ffe3f0bc2b95adb2241415a0d68687dbbec5b (patch)
treef8b6c15fa1a7851ea710948ff1af03407cddb54b /postfix-model.lua
parent8346bee32010a3237ff52f2a5330d61643dc06c1 (diff)
downloadacf-postfix-027ffe3f0bc2b95adb2241415a0d68687dbbec5b.tar.bz2
acf-postfix-027ffe3f0bc2b95adb2241415a0d68687dbbec5b.tar.xz
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'postfix-model.lua')
-rw-r--r--postfix-model.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/postfix-model.lua b/postfix-model.lua
index 344e378..64b1af4 100644
--- a/postfix-model.lua
+++ b/postfix-model.lua
@@ -3,9 +3,9 @@ module(..., package.seeall)
-- Load libraries
require("modelfunctions")
require("posix")
-require("fs")
-require("format")
-require("validator")
+fs = require("acf.fs")
+format = require("acf.format")
+validator = require("acf.validator")
-- Set variables
local processname = "postfix"
@@ -36,8 +36,12 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function startstop_service(action)
- return modelfunctions.startstop_service(processname, action, {"Start", "Stop", "Restart", "Reload"})
+function get_startstop(clientdata)
+ return modelfunctions.get_startstop(processname)
+end
+
+function startstop_service(startstop, action)
+ return modelfunctions.startstop_service(startstop, action)
end
function getstatus()