Bladeren bron

Systemctl service update

master
Dirk Alders 2 jaren geleden
bovenliggende
commit
eb24a3ee5d
2 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 2
    1
      __install__.py
  2. 3
    3
      config_example/config.py

+ 2
- 1
__install__.py Bestand weergeven

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

+ 3
- 3
config_example/config.py Bestand weergeven

@@ -6,17 +6,17 @@ import report
6 6
 MQTT_USER = "user"
7 7
 MQTT_PASS = "pass"
8 8
 MQTT_SERVER = "localhost"
9
-MQTT_TOPIC = "hifi/powerplug"
9
+MQTT_TOPIC = "dirk/powerplug"
10 10
 
11 11
 #
12 12
 # Logging
13 13
 #
14 14
 __BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
15 15
 APP_NAME = "powerplug"
16
-LOGTARGET = 'logfile'   # possible choices are: 'logfile' or 'stdout'
16
+LOGTARGET = 'stdout'   # possible choices are: 'logfile' or 'stdout'
17 17
 LOGLVL = 'DEBUG'
18 18
 
19 19
 LOGHOST = 'cutelog'
20 20
 LOGPORT = 19996
21 21
 
22
-formatter = report.LONG_FMT
22
+formatter = report.SHORT_FMT

Laden…
Annuleren
Opslaan