Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44538 - Speedfreq init script fails to start, invalid use of -P option
Summary: Speedfreq init script fails to start, invalid use of -P option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-13 00:00 UTC by David Marcin
Modified: 2004-03-15 09:32 UTC (History)
0 users

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 David Marcin 2004-03-13 00:00:11 UTC
The default init script for speedfreq includes the line:
/usr/sbin/speedfreqd -P /var/run/speedfreq.pid -p ${SPEEDFREQ_SPEED} {SPEEDFREQ_OPTS}

However, this fails to run:
root@host / $ /etc/init.d/speedfreq start
Usage: /usr/sbin/speedfreqd [-fqsuDPV] [-p policy]
        -p P    set policy to P
        -u      OK for users to set policy
        -D      print debug messages (implies -F)
        -F      stay in foreground (don't become daemon)
        -P      create a pid file /var/run/speedfreq.pid
        -V      version information

Available policies:
        powersave       maximise power savings
        performance     maximise performance
        dynamic         adjust speed according to CPU load (default)
        NNN             set CPU to a fixed speed of NNN MHz

This appears to be because the -P option does not support specifying the pid file, instead the line should be:

/usr/sbin/speedfreqd -P -p ${SPEEDFREQ_SPEED} {SPEEDFREQ_OPTS}


Reproducible: Always
Steps to Reproduce:
1. Attempt to run default init script
2.
3.
Comment 1 Michael Imhof (RETIRED) gentoo-dev 2004-03-15 05:20:16 UTC
Could you please reemerge speedfreq and try again?
I had this bug some weeks ago and i think i already fixed it...

mobile root # /etc/init.d/speedfreq restart
 * Stopping speedfreq...                                                  [ ok ]
 * Starting speedfreq...                                                  [ ok ]
mobile root #

Please emerge 0.7.2 and report back.
(ACCEPT_KEYWORDS="~x86" emerge =speedfreq-0.7.2)
Comment 2 David Marcin 2004-03-15 09:26:11 UTC
Whoops, forgot to merge the masked version before submitting.  Yes, the maksed version starts properly. :)
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2004-03-15 09:32:13 UTC
Great, so i can close this bug now and unmask the other version.