blob: 7aa3d36bb4b171119f2d6bef4f49741fc8b0617f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 }
|