summaryrefslogtreecommitdiffstats
path: root/postgresql-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-02-23 14:12:10 +0000
committerTed Trask <ttrask01@yahoo.com>2012-02-23 14:12:10 +0000
commit19a6c8d65bf675acbb0dfa44932c5aea5dab1ed6 (patch)
tree508a8d6dc0f70d414377e268bd0f372ec26792cf /postgresql-model.lua
parent7f816d868dcae07566d07b5a91d389197017651e (diff)
downloadacf-postgresql-master.tar.bz2
acf-postgresql-master.tar.xz
Change startstop to use the latest method from acf-core-0.15HEADmaster
Diffstat (limited to 'postgresql-model.lua')
-rw-r--r--postgresql-model.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/postgresql-model.lua b/postgresql-model.lua
index dc73d90..690802d 100644
--- a/postgresql-model.lua
+++ b/postgresql-model.lua
@@ -2,8 +2,8 @@ module(..., package.seeall)
-- Load libraries
require("modelfunctions")
-require("fs")
-require("format")
+fs = require("acf.fs")
+format = require("acf.format")
-- Set variables
local confdfile = "/etc/conf.d/postgresql"
@@ -34,8 +34,12 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function startstop_service(action)
- return modelfunctions.startstop_service(processname, action, {"Setup", "Start", "Stop", "Restart"})
+function get_startstop(clientdata)
+ return modelfunctions.get_startstop(processname)
+end
+
+function startstop_service(startstop, action)
+ return modelfunctions.startstop_service(startstop, action)
end
function getstatus()