RNG daemon takes too long ot shutdown
Bug #1425036 reported by
TomasHnyk
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rng-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Shutdown of my computer takes too long. I started to investigate and I always wait about 5 seconds with"
Stopping Hardware RNG entropy gatherer daemon: rngd.
It does not stop by itself, so after 5 seconds, it goes down and shutdown continues.
This is in lenovo W530 on Ubuntu 14.04 (ps shows:
root 2176 0.2 0.0 8964 340 ? Ss 12:16 0:00 /usr/sbin/rngd -r /dev/hwrng )
To post a comment you must log in.
Alright, changin the line
if start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \
-- startas ${DAEMON} --retry 10 --name ${NAME} \
to
if start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \
-- startas ${DAEMON} --retry 1 --name ${NAME} \
in /etc/inid. d/rng-tools speeds things up considerably (to about one second). Setting --retry to 0 causes to falsely output that service was not not runninng (in fact it was and was killed), removing the --retry option causes that rngd is not stopped at all.
Any idea why that --retry 10 is there at all?