summaryrefslogtreecommitdiffstats
path: root/postgresql-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-05-15 08:18:54 +0000
committerTed Trask <ttrask01@yahoo.com>2011-05-15 08:18:54 +0000
commitd174086dee3a02b681d8c44c24b9b2b6dbb43ecd (patch)
tree7585883bf1844b0256c089c22af3a23bdb65b07d /postgresql-model.lua
parent4253a19a38cdf076c0f4b98cb42ecdca56787fea (diff)
downloadacf-postgresql-d174086dee3a02b681d8c44c24b9b2b6dbb43ecd.tar.bz2
acf-postgresql-d174086dee3a02b681d8c44c24b9b2b6dbb43ecd.tar.xz
Added ability to handle multiple instances
Diffstat (limited to 'postgresql-model.lua')
-rw-r--r--postgresql-model.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/postgresql-model.lua b/postgresql-model.lua
index 5efa635..dc73d90 100644
--- a/postgresql-model.lua
+++ b/postgresql-model.lua
@@ -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