Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152090 - sys-power/cpufrequtils-002-r2: /etc/init.d/cpufrequtils, wrong governer on stop
Summary: sys-power/cpufrequtils-002-r2: /etc/init.d/cpufrequtils, wrong governer on stop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 04:46 UTC by Daniel Franke
Modified: 2006-10-20 12:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Franke 2006-10-20 04:46:21 UTC
The file "/etc/conf.d/cpufrequtils" provides GOVERNOR, but not RESTORED_GOVERNOR. In "/etc/init.d/cpufrequtils", RESTORED_GOVERNOR is set to "performance" per default:

if [ -z "${RESTORED_GOVERNOR}" ]; then
       RESTORED_GOVERNOR=performance
fi

If GOVERNOR != RESTORED_GOVERNOR, stopping cpufrequtils then always fails since

stop() {
        checkconfig || return 1
        affect_change "Disabling" "${RESTORED_GOVERNOR}"
}


I don't know what RESTORED_GOVERNOR is supposed to do, but changing the above to "Disabling" "${GOVERNOR}" instead, lets me stop that service again.
Comment 1 Christian Heim (RETIRED) gentoo-dev 2006-10-20 12:22:37 UTC
Thanks Daniel, I just commited a fixed init-script.