Systemctl service update
This commit is contained in:
parent
33a68f3c0e
commit
eb24a3ee5d
@ -6,7 +6,8 @@ import sys
|
|||||||
SERVICE_FILE = """
|
SERVICE_FILE = """
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Powerplug Service
|
Description=Powerplug 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
|
||||||
|
@ -6,17 +6,17 @@ import report
|
|||||||
MQTT_USER = "user"
|
MQTT_USER = "user"
|
||||||
MQTT_PASS = "pass"
|
MQTT_PASS = "pass"
|
||||||
MQTT_SERVER = "localhost"
|
MQTT_SERVER = "localhost"
|
||||||
MQTT_TOPIC = "hifi/powerplug"
|
MQTT_TOPIC = "dirk/powerplug"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Logging
|
# Logging
|
||||||
#
|
#
|
||||||
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
|
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
|
||||||
APP_NAME = "powerplug"
|
APP_NAME = "powerplug"
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user