Systemctl service update

This commit is contained in:
Dirk Alders 2022-08-24 13:17:06 +01:00
parent 33a68f3c0e
commit eb24a3ee5d
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -6,17 +6,17 @@ import report
MQTT_USER = "user"
MQTT_PASS = "pass"
MQTT_SERVER = "localhost"
MQTT_TOPIC = "hifi/powerplug"
MQTT_TOPIC = "dirk/powerplug"
#
# Logging
#
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
APP_NAME = "powerplug"
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