diff options
author | dakkar <dakkar@thenautilus.net> | 2025-03-20 17:06:54 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2025-03-20 17:06:54 +0000 |
commit | 4c9c11456b87cd5b7805d414a3ef8ab728a2b10d (patch) | |
tree | 100948bec98f19f9b4f347cfd7f77e2743da2b7c /therm.openrc | |
parent | more exception tweaking (diff) | |
download | ats-therm-master.tar.gz ats-therm-master.tar.bz2 ats-therm-master.zip |
Diffstat (limited to 'therm.openrc')
-rwxr-xr-x | therm.openrc | 6 |
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" |