diff options
author | Dennis Eriksen <d@ennis.no> | 2023-03-29 21:20:40 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-03-29 21:20:44 +0200 |
commit | b561663aba8c69b30ff14fb985df4cbf28ef0e6a (patch) | |
tree | 67e7e50f7310e27114e03af08f15a40e89409e73 /neohub_listener.service | |
parent | entsoe has new api-url (diff) | |
download | energyscripts-b561663aba8c69b30ff14fb985df4cbf28ef0e6a.tar.gz |
adding user/pass for mqtt, made a service for neohub
Diffstat (limited to 'neohub_listener.service')
-rw-r--r-- | neohub_listener.service | 17 |
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 |