- Show version at startup. Thanks to Klaus Lehmann.

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@643 a942ae1a-1317-0410-a47c-b1dcaea8d605
_tent/ipv6_via_aInfo
Cyril Jaquier 2008-01-13 15:49:23 +00:00
parent 7db7967ab1
commit 2703c8ebb9
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ from jails import Jails
from transmitter import Transmitter from transmitter import Transmitter
from asyncserver import AsyncServer from asyncserver import AsyncServer
from asyncserver import AsyncServerException from asyncserver import AsyncServerException
from common import version
import logging, logging.handlers, sys, os, signal import logging, logging.handlers, sys, os, signal
# Gets the instance of the logger. # Gets the instance of the logger.
@ -54,7 +55,7 @@ class Server:
self.quit() self.quit()
def start(self, sock, force = False): def start(self, sock, force = False):
logSys.info("Starting Fail2ban") logSys.info("Starting Fail2ban v" + version.version)
# Install signal handlers # Install signal handlers
signal.signal(signal.SIGTERM, self.__sigTERMhandler) signal.signal(signal.SIGTERM, self.__sigTERMhandler)