openrc fix

This maintains consistency with the install.sh script by using the virtualenv that the script sets up. The original version was using a different interpreter and complained about missing imports. Additionally, the new shebang now points to the correct openrc-run executable. These were the only changes needed for this script to work on Gentoo.
This commit is contained in:
Connor Frank 2021-12-11 23:52:08 -05:00 committed by GitHub
parent 6cb79fce7a
commit b0706c58f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/openrc-run
command="env python3 /usr/lib/throttled/throttled.py"
#!/sbin/openrc-run
command="/opt/throttled/venv/bin/python3 /opt/throttled/throttled.py"
pidfile=${pidfile-/var/run/throttled.pid}
description="Stop Intel throttling"
command_background="yes"