summaryrefslogtreecommitdiffstats
path: root/postfix-model.lua
diff options
context:
space:
mode:
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()