aboutsummaryrefslogtreecommitdiff
path: root/therm.openrc
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2025-03-20 17:06:54 +0000
committerdakkar <dakkar@thenautilus.net>2025-03-20 17:06:54 +0000
commit4c9c11456b87cd5b7805d414a3ef8ab728a2b10d (patch)
tree100948bec98f19f9b4f347cfd7f77e2743da2b7c /therm.openrc
parentmore exception tweaking (diff)
downloadats-therm-master.tar.gz
ats-therm-master.tar.bz2
ats-therm-master.zip
use supervisorHEADmaster
Diffstat (limited to 'therm.openrc')
-rwxr-xr-xtherm.openrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/therm.openrc b/therm.openrc
index 7aa3d36..8f422de 100755
--- a/therm.openrc
+++ b/therm.openrc
@@ -2,11 +2,15 @@
thisdir="$(dirname "$(readlink -f "$1")")"
+supervisor=supervise-daemon
+respawn_delay=3
+respawn_max=2
+respawn_period=10
+
description="XIAOMI Mijia prometheus exporter"
directory="$thisdir"
command="/usr/bin/env VIRTUAL_ENV='${thisdir}/venv' PATH='${thisdir}/venv/bin:/bin:/usr/bin' ./scan.py"
pidfile="${thisdir}/ats-therm.pid"
-command_background=true
command_user=dakkar
output_log="${thisdir}/scan.out"
error_log="${thisdir}/scan.err"