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) ...@@ -15,7 +15,7 @@ function status(self)
end end
function startstop(self) 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 end
function details(self) function details(self)
......
...@@ -2,8 +2,8 @@ module(..., package.seeall) ...@@ -2,8 +2,8 @@ module(..., package.seeall)
-- Load libraries -- Load libraries
require("modelfunctions") require("modelfunctions")
require("fs") fs = require("acf.fs")
require("format") format = require("acf.format")
-- Set variables -- Set variables
local confdfile = "/etc/conf.d/postgresql" local confdfile = "/etc/conf.d/postgresql"
...@@ -34,8 +34,12 @@ end ...@@ -34,8 +34,12 @@ end
-- ################################################################################ -- ################################################################################
-- PUBLIC FUNCTIONS -- PUBLIC FUNCTIONS
function startstop_service(action) function get_startstop(clientdata)
return modelfunctions.startstop_service(processname, action, {"Setup", "Start", "Stop", "Restart"}) return modelfunctions.get_startstop(processname)
end
function startstop_service(startstop, action)
return modelfunctions.startstop_service(startstop, action)
end end
function getstatus() 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