diff options
author | dakkar <dakkar@thenautilus.net> | 2024-07-07 15:36:09 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2024-07-07 15:38:59 +0000 |
commit | b9121a113e50e81f09b01c0f95bf3fa1010feb56 (patch) | |
tree | e3e677a9c36eb5c5178b1fd36769a7495363d67d /therm.openrc | |
download | ats-therm-b9121a113e50e81f09b01c0f95bf3fa1010feb56.tar.gz ats-therm-b9121a113e50e81f09b01c0f95bf3fa1010feb56.tar.bz2 ats-therm-b9121a113e50e81f09b01c0f95bf3fa1010feb56.zip |
start
Diffstat (limited to 'therm.openrc')
-rwxr-xr-x | therm.openrc | 19 |
1 files changed, 19 insertions, 0 deletions
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 +} |