aboutsummaryrefslogtreecommitdiffstats
path: root/mqtt2queue.service
diff options
context:
space:
mode:
Diffstat (limited to 'mqtt2queue.service')
-rw-r--r--mqtt2queue.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/mqtt2queue.service b/mqtt2queue.service
new file mode 100644
index 0000000..a63c994
--- /dev/null
+++ b/mqtt2queue.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Simple service to start python-listener
+StartLimitIntervalSec=100
+StartLimitBurst=5
+
+[Service]
+Type=simple
+EnvironmentFile=%h/energyscripts/.env
+WorkingDirectory=%h/energyscripts
+ExecStart=%h/energyscripts/venv/bin/python3 -u mqtt2queue.py
+Restart=on-failure
+TimeoutStopSec=70
+RestartSec=30
+SyslogIdentifier=mqtt2queue
+
+[Install]
+WantedBy=default.target