-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuned ppd adjustments #646
Tuned ppd adjustments #646
Conversation
And adjust the systemd service file to log to /var/log/tuned/tuned-ppd.log by default. Additionally, add an option to turn on debug level logging.
The daemon does not write its PID to any file.
Related: rhbz#2292636
- Only use the default profile from the configuration file if TuneD is not already running with an active profile. This makes the daemon "recall" the active profile after a restart. - Make sure that SIGHUP completely resets the daemon, including resetting the 'battery' and 'performance_degraded' status.
The profile may not change, so do not log that we are switching a profile.
Added 3 more commits, most importantly an update which makes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it seems OK.
# start tuned-ppd right away | ||
if [ -f %{_localstatedir}/lib/rpm-state/tuned/ppd-active ]; then | ||
systemctl start tuned-ppd | ||
rm -rf %{_localstatedir}/lib/rpm-state/tuned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will probably trigger rpmlint warning, thus it's better to do rm -f
and then rmdir
, but this is minor problem that can be ignored/waived or fixed later.
Rawhide CI failure is unrelated. |
This PR introduces small changes in and related to
tuned-ppd
:/var/log/tuned/tuned-ppd.log
).power-profiles-daemon
fortuned-ppd
, scriptlets now check whether PPD is running and if yes,tuned-ppd
is also started right away.