https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Fix_The_rngd.service&feed=atom&action=historyHowTo Fix The rngd.service - Revision history2024-03-29T05:40:25ZRevision history for this page on the wikiMediaWiki 1.32.4https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Fix_The_rngd.service&diff=8618&oldid=prevPaul Blankenbaker: Created page with "If you have a problem where your rngd.service fails to start (this applies systems using systemd like Fedora, CentOS 7 and RHEL 7 as well as NST systems), we have found the fo..."2016-12-01T18:55:18Z<p>Created page with "If you have a problem where your rngd.service fails to start (this applies systems using systemd like Fedora, CentOS 7 and RHEL 7 as well as NST systems), we have found the fo..."</p>
<p><b>New page</b></p><div>If you have a problem where your rngd.service fails to start (this applies systems using systemd like Fedora, CentOS 7 and RHEL 7 as well as NST systems), we have found the following work around:<br />
<br />
== Step 1 ==<br />
<br />
Make a copy of the rngd.service systemd file:<br />
<br />
cp /usr/lib/systemd/system/rngd.service /etc/systemd/system/rngd.service<br />
<br />
== Step 2 ==<br />
<br />
Edit your new copy of /etc/systemd/system/rngd.service and add the "-r /dev/urandom -o /dev/random" options to the ''ExecStart'' value as shown below:<br />
<br />
[Unit]<br />
Description=Hardware RNG Entropy Gatherer Daemon<br />
<br />
[Service]<br />
ExecStart=/sbin/rngd -f -r /dev/urandom -o /dev/random<br />
SuccessExitStatus=66<br />
<br />
[Install]<br />
WantedBy=multi-user.target<br />
<br />
== Step 3 ==<br />
<br />
Instruct systemd to reload its configuration files, restart the rngd service and verify it is working:<br />
<br />
[root@tlp ~]# systemctl daemon-reload<br />
[root@tlp ~]# systemctl stop rngd<br />
[root@tlp ~]# systemctl start rngd<br />
[root@tlp ~]# systemctl status rngd<br />
● rngd.service - Hardware RNG Entropy Gatherer Daemon<br />
Loaded: loaded (/etc/systemd/system/rngd.service; enabled; vendor preset: enabled)<br />
Active: active (running) since Thu 2016-12-01 17:19:32 UTC; 4s ago<br />
Main PID: 3381 (rngd)<br />
CGroup: /system.slice/rngd.service<br />
└─3381 /sbin/rngd -f -r /dev/urandom -o /dev/random<br />
<br />
Dec 01 17:19:32 tlp-can systemd[1]: Started Hardware RNG Entropy Gatherer D...n.<br />
Dec 01 17:19:32 tlp-can systemd[1]: Starting Hardware RNG Entropy Gatherer .....<br />
Hint: Some lines were ellipsized, use -l to show in full.<br />
[root@tlp ~]# <br />
<br />
It would be wise to reboot the machine as well to verify that the rngd service comes up clean after a power outage.</div>Paul Blankenbaker