aboutsummaryrefslogtreecommitdiffstats
path: root/mqtt_listener.service
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-02-01 20:32:11 +0100
committerDennis Eriksen <d@ennis.no>2023-02-01 20:32:11 +0100
commit8d186d39483beff64a1c11f80c6ca5e56dd7bbc5 (patch)
tree2c5a64ace4bd8eabd4d65014c5313bd7edd76191 /mqtt_listener.service
parentrun queue in batches (diff)
downloadenergyscripts-8d186d39483beff64a1c11f80c6ca5e56dd7bbc5.tar.gz
moving and renaming/breaking everything
Diffstat (limited to '')
-rw-r--r--mqtt_listener.service (renamed from queue2pgsql.service)6
1 files changed, 3 insertions, 3 deletions
diff --git a/queue2pgsql.service b/mqtt_listener.service
index 49e4066..1ae79ca 100644
--- a/queue2pgsql.service
+++ b/mqtt_listener.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Simple service to start python-listener
+Description=Simple service to start mqtt-listener
StartLimitIntervalSec=100
StartLimitBurst=5
@@ -7,11 +7,11 @@ StartLimitBurst=5
Type=simple
EnvironmentFile=%h/energyscripts/.env
WorkingDirectory=%h/energyscripts
-ExecStart=%h/energyscripts/venv/bin/python3 -u queue2pgsql.py
+ExecStart=%h/energyscripts/venv/bin/python3 -u scripts/mqtt_listener.py
Restart=on-failure
TimeoutStopSec=70
RestartSec=30
-SyslogIdentifier=queue2pgsql
+SyslogIdentifier=%N
[Install]
WantedBy=default.target