Commit d174086d authored by Ted Trask's avatar Ted Trask

Added ability to handle multiple instances

parent 4253a19a
......@@ -3,6 +3,11 @@ module(..., package.seeall)
-- Load libraries
require("controllerfunctions")
mvc = {}
mvc.on_load = function(self, parent)
self.model.set_processname(string.match(self.conf.prefix, "[^/]+"))
end
default_action = "status"
function status(self)
......
......@@ -15,6 +15,11 @@ local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
local datadirectory
local filelist
function set_processname(p)
processname = p
confdfile = "/etc/conf.d/"..processname
end
-- ################################################################################
-- LOCAL FUNCTIONS
......
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