Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442238 - sys-apps/rng-tools-4 - /etc/init.d/rngd stop does not shutdown rngd with Ivy Bridge
Summary: sys-apps/rng-tools-4 - /etc/init.d/rngd stop does not shutdown rngd with Ivy ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-11-07 19:43 UTC by Chris Mayo
Modified: 2012-12-16 00:04 UTC (History)
2 users (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 Chris Mayo 2012-11-07 19:43:48 UTC
Reported upstream:
http://sourceforge.net/tracker/?func=detail&aid=3561711&group_id=3242&atid=103242

rng-tools-4 using Ivy Bridge (i3770) DRNG on Gentoo Linux, kernel gentoo-sources-3.5.2

- rngd running as daemon
1) killall rngd
- rngd still running
2) cat /dev/random > /dev/null
- rngd not running

rngd running in the foreground will stop immediately on SIGTERM
and can stop rngd daemon immediately with:
killall -s SIGALRM rngd




Workedaround for me by changing stop() line in init script to:

start-stop-daemon --signal ALRM --pidfile /var/run/rngd.pid
Comment 1 Toralf Förster gentoo-dev 2012-11-11 15:42:57 UTC
At a ThinkPad T420 (i5) rng-4-r1 fails to stop now too (unstable Gentoo user-mode-linux-image) :

 * Stopping hardware RNG daemon ...
 * start-stop-daemon: 1 process refused to stop
 [ !! ]
 * ERROR: rngd failed to stop
Comment 2 Toralf Förster gentoo-dev 2012-11-11 15:44:23 UTC
FWIW this helped :


start() {
        checkpath --directory /var/run/apache_ssl_mutex   <-------
        checkconfig || return 1
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-15 23:51:43 UTC
Confirmed here — got a fix for the init script as well.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-16 00:04:24 UTC
And this is fixed in 4-r2. Thanks!