diff options
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" |