Commit 19a6c8d6 authored by Ted Trask's avatar Ted Trask

Change startstop to use the latest method from acf-core-0.15

parent 7f816d86
......@@ -15,7 +15,7 @@ function status(self)
end
function startstop(self)
return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata)
return controllerfunctions.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
end
function details(self)
......
......@@ -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()
......
../startstop-html.lsp
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment