Removed systemd dependency
This commit is contained in:
@@ -15,9 +15,7 @@ classifiers = [
|
|||||||
"License :: OSI Approved :: CeCILL-C",
|
"License :: OSI Approved :: CeCILL-C",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [ ]
|
||||||
"systemd-python",
|
|
||||||
]
|
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import sys
|
|||||||
import traceback
|
import traceback
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
import logging
|
import logging
|
||||||
from systemd import journal
|
|
||||||
import inspect
|
import inspect
|
||||||
from enum import Enum, auto
|
from enum import Enum, auto
|
||||||
import signal
|
import signal
|
||||||
@@ -364,12 +363,8 @@ class AppEngine:
|
|||||||
if is_writeable:
|
if is_writeable:
|
||||||
self.log.addHandler(logging.FileHandler(fname))
|
self.log.addHandler(logging.FileHandler(fname))
|
||||||
else:
|
else:
|
||||||
self.log.addHandler(journal.JournalHandler())
|
|
||||||
self.log.error('No write permissions: "{}"'.format(fname))
|
self.log.error('No write permissions: "{}"'.format(fname))
|
||||||
|
|
||||||
else:
|
|
||||||
self.log.addHandler(journal.JournalHandler())
|
|
||||||
|
|
||||||
def exec(self, modpath: str = ""):
|
def exec(self, modpath: str = ""):
|
||||||
self.cl = CommandsLoader(self.conf, self.log, modpath)
|
self.cl = CommandsLoader(self.conf, self.log, modpath)
|
||||||
self.cl.start()
|
self.cl.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user