mirror of https://github.com/fail2ban/fail2ban
- 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
parent
7db7967ab1
commit
2703c8ebb9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue