From c0b8c180bf83430729ffbc2ae3505d004ec388bb Mon Sep 17 00:00:00 2001 From: Hyper-KVM Date: Wed, 19 Feb 2020 16:40:52 -0500 Subject: [PATCH] fix init script --- openrc/lenovo_fix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrc/lenovo_fix b/openrc/lenovo_fix index 23b4467..776c7c9 100644 --- a/openrc/lenovo_fix +++ b/openrc/lenovo_fix @@ -1,12 +1,12 @@ #!/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} description="Stop Intel throttling" start() { ebegin "Starting Throttled daemon" - start-stop-daemon --quiet --background --start --exec $command \ + start-stop-daemon --start --exec $command \ --make-pidfile --pidfile $pidfile -- "" eend $? "Failed to start Throttled daemon" }