From 5f2d5dbc45f1bb84c3f58078cb132e0992ec0994 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 25 Apr 2011 00:52:05 -0400 Subject: Some further daemon cleanups. - alias logs should be properly redirected - needs to redirect sleekxmpp somewhere --- server/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/config.py') 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() -- cgit v1.2.3-70-g09d2