Systemctl service improved

This commit is contained in:
Dirk Alders 2022-08-24 14:30:52 +01:00
parent ed4efd48c1
commit 4ee21b692f
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,8 @@ import sys
SERVICE_FILE = """ SERVICE_FILE = """
[Unit] [Unit]
Description=MPD Monitor Service Description=MPD Monitor Service
After=mosquitto.target After=network-online.target
Wants=network-online.target
[Service] [Service]
User=%(UID)d User=%(UID)d
Group=%(GID)d Group=%(GID)d

View File

@ -13,10 +13,10 @@ MQTT_TOPIC = "hifi/mpd"
# #
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__)) __BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
APP_NAME = "mpd" APP_NAME = "mpd"
LOGTARGET = 'logfile' # possible choices are: 'logfile' or 'stdout' LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
LOGLVL = 'DEBUG' LOGLVL = 'DEBUG'
LOGHOST = 'cutelog' LOGHOST = 'cutelog'
LOGPORT = 19996 LOGPORT = 19996
formatter = report.LONG_FMT formatter = report.SHORT_FMT