aboutsummaryrefslogtreecommitdiffstats
path: root/neohub_listener.service
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-03-29 21:20:40 +0200
committerDennis Eriksen <d@ennis.no>2023-03-29 21:20:44 +0200
commitb561663aba8c69b30ff14fb985df4cbf28ef0e6a (patch)
tree67e7e50f7310e27114e03af08f15a40e89409e73 /neohub_listener.service
parententsoe has new api-url (diff)
downloadenergyscripts-b561663aba8c69b30ff14fb985df4cbf28ef0e6a.tar.gz
adding user/pass for mqtt, made a service for neohub
Diffstat (limited to 'neohub_listener.service')
-rw-r--r--neohub_listener.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/neohub_listener.service b/neohub_listener.service
new file mode 100644
index 0000000..880d08f
--- /dev/null
+++ b/neohub_listener.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Simple service to start neohub listener
+StartLimitIntervalSec=100
+StartLimitBurst=5
+
+[Service]
+Type=simple
+EnvironmentFile=%h/energyscripts/.env
+WorkingDirectory=%h/energyscripts
+ExecStart=%h/energyscripts/venv/bin/python3 -u scripts/neohub.py
+Restart=on-failure
+TimeoutStopSec=70
+RestartSec=30
+SyslogIdentifier=%N
+
+[Install]
+WantedBy=default.target