From 027ffe3f0bc2b95adb2241415a0d68687dbbec5b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 18 Apr 2012 01:33:04 +0000 Subject: 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 --- postfix-model.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'postfix-model.lua') 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() -- cgit v1.2.3