moved logging shutdown out of quit(), into end of start() in server.py

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@748 a942ae1a-1317-0410-a47c-b1dcaea8d605
_tent/ipv6_via_aInfo
Arturo 'Buanzo' Busleiman 2009-08-31 14:14:02 +00:00
parent b91595dd11
commit 5945ca09ae
1 changed files with 5 additions and 5 deletions

View File

@ -96,11 +96,6 @@ class Server:
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 @@ class Server:
finally:
self.__loggingLock.release()
def quit(self):
self.stopAllJail()
# Stop communication
self.__asyncServer.stop()
def addJail(self, name, backend):
self.__jails.add(name, backend)