mirror of
https://github.com/erpalma/throttled.git
synced 2026-03-11 07:23:56 +01:00
really fix init script this time
This commit is contained in:
parent
c0b8c180bf
commit
a88689b8bb
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue