Removed systemd dependency

This commit is contained in:
François Dausseur
2025-04-17 14:40:34 +02:00
parent a45d975617
commit 28057dddd6
3 changed files with 2 additions and 9 deletions

View File

@@ -5,7 +5,6 @@ import sys
import traceback
from configparser import ConfigParser
import logging
from systemd import journal
import inspect
from enum import Enum, auto
import signal
@@ -364,12 +363,8 @@ class AppEngine:
if is_writeable:
self.log.addHandler(logging.FileHandler(fname))
else:
self.log.addHandler(journal.JournalHandler())
self.log.error('No write permissions: "{}"'.format(fname))
else:
self.log.addHandler(journal.JournalHandler())
def exec(self, modpath: str = ""):
self.cl = CommandsLoader(self.conf, self.log, modpath)
self.cl.start()