From: <bu...@us...> - 2009-08-31 14:14:09
|
Revision: 748 http://fail2ban.svn.sourceforge.net/fail2ban/?rev=748&view=rev Author: buanzo Date: 2009-08-31 14:14:02 +0000 (Mon, 31 Aug 2009) Log Message: ----------- moved logging shutdown out of quit(), into end of start() in server.py Modified Paths: -------------- branches/FAIL2BAN-0_8/server/server.py Modified: branches/FAIL2BAN-0_8/server/server.py =================================================================== --- branches/FAIL2BAN-0_8/server/server.py 2009-08-31 13:57:32 UTC (rev 747) +++ branches/FAIL2BAN-0_8/server/server.py 2009-08-31 14:14:02 UTC (rev 748) @@ -96,11 +96,6 @@ except OSError, e: logSys.error("Unable to remove PID file: %s" % e) logSys.info("Exiting Fail2ban") - - def quit(self): - self.stopAllJail() - # Stop communication - self.__asyncServer.stop() # Shutdowns the logging. try: self.__loggingLock.acquire() @@ -108,6 +103,11 @@ finally: self.__loggingLock.release() + def quit(self): + self.stopAllJail() + # Stop communication + self.__asyncServer.stop() + def addJail(self, name, backend): self.__jails.add(name, backend) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |