From 4ee21b692fe0b05d445a95f3618db96cf856adec Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Wed, 24 Aug 2022 14:30:52 +0100 Subject: [PATCH] Systemctl service improved --- __install__.py | 3 ++- config_example/config.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/__install__.py b/__install__.py index e1746f5..3d0264e 100644 --- a/__install__.py +++ b/__install__.py @@ -6,7 +6,8 @@ import sys SERVICE_FILE = """ [Unit] Description=MPD Monitor Service -After=mosquitto.target +After=network-online.target +Wants=network-online.target [Service] User=%(UID)d Group=%(GID)d diff --git a/config_example/config.py b/config_example/config.py index 7184829..83da682 100644 --- a/config_example/config.py +++ b/config_example/config.py @@ -13,10 +13,10 @@ MQTT_TOPIC = "hifi/mpd" # __BASEPATH__ = os.path.abspath(os.path.dirname(__file__)) APP_NAME = "mpd" -LOGTARGET = 'logfile' # possible choices are: 'logfile' or 'stdout' +LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout' LOGLVL = 'DEBUG' LOGHOST = 'cutelog' LOGPORT = 19996 -formatter = report.LONG_FMT +formatter = report.SHORT_FMT