From d174086dee3a02b681d8c44c24b9b2b6dbb43ecd Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sun, 15 May 2011 08:18:54 +0000 Subject: Added ability to handle multiple instances --- postgresql-controller.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'postgresql-controller.lua') diff --git a/postgresql-controller.lua b/postgresql-controller.lua index 91ce5f8..e7c6d13 100644 --- a/postgresql-controller.lua +++ b/postgresql-controller.lua @@ -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) -- cgit v1.2.3