From b9121a113e50e81f09b01c0f95bf3fa1010feb56 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 7 Jul 2024 15:36:09 +0000 Subject: start --- therm.openrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 therm.openrc (limited to 'therm.openrc') diff --git a/therm.openrc b/therm.openrc new file mode 100755 index 0000000..7aa3d36 --- /dev/null +++ b/therm.openrc @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +thisdir="$(dirname "$(readlink -f "$1")")" + +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" +name="ats-therm" +procname="python" + +depend() { + need localmount net + after bootmisc +} -- cgit v1.2.3