> cat /usr/lib/dinit/cpupower
#!/bin/sh
[ -r /etc/default/cpupower ] && . /etc/default/cpupower
# CPU speed
[ "$governor" ] && cpupower frequency-set -g "$governor"
[ "$max_freq" ] && cpupower frequency-set -u "$max_freq"
[ "$min_freq" ] && cpupower frequency-set -d "$min_freq"
[ "$freq" ] && cpupower frequency-set -f "$freq"
# CPU options
[ "$perf_bias" ] && cpupower set -b "$perf_bias"
[ "$mc_scheduler" ] && cpupower set -m "$mc_scheduler"
[ "$smp_scheduler" ] && cpupower set -s "$smp_scheduler"
true
the patch
13a14,15
>
> true
why isn't there a way to send PR on gitea (or even register)?
Since cpupower is scripted, I don't think true is necessary. Or you encountered an error while trying to run the script?
Starting the service makes dinit believe that it failed even if everything went fine. The following is printed:
# dinitctl start cpupower
Service 'cpupower' failed to start.
Reason: service process terminated before ready: exited - status 1
And
dinitctl list shows this line, indicating that something went wrong:
[ {X}] cpupower
This is misleading. Simply adding
true on the last line solves the problem.
Please don't necropost in every single cpupower-dinit-related post. After seeing what happened here (https://forum.artixlinux.org/index.php/topic,6977.0.html) I decided to add
exit 0.
Sorry, you're right. Is there a way to delete my other replies, if it's okay? I didn't find the option.
Also thank you for the fix!
Leave them. In the future check post dates though.