really fix init script this time

This commit is contained in:
Hyper-KVM
2020-02-19 18:48:54 -05:00
parent c0b8c180bf
commit a88689b8bb

View File

@@ -1,18 +1,5 @@
#!/usr/bin/openrc-run
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 --start --exec $command \
--make-pidfile --pidfile $pidfile -- ""
eend $? "Failed to start Throttled daemon"
}
stop() {
ebegin "Stopping Throttled daemon"
start-stop-daemon --quiet --stop --pidfile $pidfile --signal QUIT
eend $? "Failed to stop Throttled daemon"
}
command_background="yes"