Enabled loading of monitors in etc/, some refactoring and fixes.

This commit is contained in:
Johannes Findeisen 2022-09-27 02:28:09 +02:00
commit 2384c789a7
32 changed files with 167 additions and 28 deletions

View file

@ -27,9 +27,10 @@ from linspector.core.daemon import Daemon
logger = getLogger('linspector')
class Linspector(Daemon):
class Linspectord(Daemon):
def __init__(self, configuration, environment):
def __init__(self, configuration, environment, linspector):
super().__init__(configuration.get_option('linspector', 'pid_file'))
self.__configuration = configuration
self.__environment = environment
self.__linspector = linspector