diff options
author | Dennis Eriksen <d@ennis.no> | 2023-01-30 20:05:25 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-01-30 20:05:25 +0100 |
commit | 577f3b123b319414b4fa50ff9d2838015ccb372e (patch) | |
tree | ffccfa8ce30f1e1876e66adec6fe67276c3d1ad9 /mqtt_temps.service | |
parent | adding a few dependencies (diff) | |
download | energyscripts-577f3b123b319414b4fa50ff9d2838015ccb372e.tar.gz |
adding handler for tempsensors on mqtt
Diffstat (limited to 'mqtt_temps.service')
-rw-r--r-- | mqtt_temps.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mqtt_temps.service b/mqtt_temps.service new file mode 100644 index 0000000..d6a859e --- /dev/null +++ b/mqtt_temps.service @@ -0,0 +1,19 @@ +[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 mqtt_temps.py +Restart=on-failure +TimeoutStopSec=70 +RestartSec=30 +SyslogIdentifier=mqtt_temps +#StandardOutput=journal +#StandardError=journal + +[Install] +WantedBy=default.target |