aboutsummaryrefslogtreecommitdiffstats
path: root/server/config.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2011-04-25 00:52:05 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2011-04-25 00:52:05 -0400
commit5f2d5dbc45f1bb84c3f58078cb132e0992ec0994 (patch)
treed6e7288cf8957a4a1a780f392b70a1880ff5d346 /server/config.py
parent31d5c3bc03fd50c076026c4954a1cdb5bcef40b0 (diff)
downloadalias-5f2d5dbc45f1bb84c3f58078cb132e0992ec0994.tar.gz
Some further daemon cleanups.
- alias logs should be properly redirected - needs to redirect sleekxmpp somewhere
Diffstat (limited to 'server/config.py')
-rw-r--r--server/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/config.py b/server/config.py
index 755477b..ab9be52 100644
--- a/server/config.py
+++ b/server/config.py
@@ -1,16 +1,16 @@
import ConfigParser
-filename = None
-
class AliasConfigParser(ConfigParser.RawConfigParser):
- def read(self, filenames):
- ConfigParser.RawConfigParser.read(self, filenames)
+ def read(self, filename):
+ ConfigParser.RawConfigParser.read(self, filename)
self.name = self.get("component", "name")
self.root = self.get("component", "root")
self.host = self.get("component", "host")
self.secret = self.get("component", "secret")
self.port = self.getint("component", "port")
self.background = self.getboolean("component", "background")
+ self.logfile = self.get("component", "logfile")
+ self.pidfile = self.get("component", "pidfile")
config = AliasConfigParser()