summaryrefslogtreecommitdiffstats
path: root/opennhrp-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'opennhrp-model.lua')
-rw-r--r--opennhrp-model.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/opennhrp-model.lua b/opennhrp-model.lua
index fac0358..b23cb67 100644
--- a/opennhrp-model.lua
+++ b/opennhrp-model.lua
@@ -2,7 +2,7 @@ module(..., package.seeall)
-- Load libraries
require("modelfunctions")
-require("validator")
+validator = require("acf.validator")
-- Set variables
local configfile = "/etc/opennhrp/opennhrp.conf"
@@ -178,8 +178,12 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function startstop_service(action)
- return modelfunctions.startstop_service(processname, action)
+function get_startstop(clientdata)
+ return modelfunctions.get_startstop(processname)
+end
+
+function startstop_service(startstop, action)
+ return modelfunctions.startstop_service(startstop, action)
end
function getstatus()