fix init script

This commit is contained in:
Hyper-KVM
2020-02-19 16:40:52 -05:00
parent 422769aafd
commit c0b8c180bf

View File

@@ -1,12 +1,12 @@
#!/usr/bin/openrc-run #!/usr/bin/openrc-run
command="PYTHONUNBUFFERED=1 /opt/lenovo_fix/venv/bin/python3 /opt/lenovo_fix/lenovo_fix.py" command="env python3 /usr/lib/throttled/lenovo_fix.py"
pidfile=${pidfile-/var/run/lenovo_fix.pid} pidfile=${pidfile-/var/run/lenovo_fix.pid}
description="Stop Intel throttling" description="Stop Intel throttling"
start() { start() {
ebegin "Starting Throttled daemon" ebegin "Starting Throttled daemon"
start-stop-daemon --quiet --background --start --exec $command \ start-stop-daemon --start --exec $command \
--make-pidfile --pidfile $pidfile -- "" --make-pidfile --pidfile $pidfile -- ""
eend $? "Failed to start Throttled daemon" eend $? "Failed to start Throttled daemon"
} }