On Thu, Jan 29, 2015 at 10:45:37PM -0200, Henrique de Moraes Holschuh wrote:
> On Thu, Jan 29, 2015, at 16:56, Paul Elliott wrote:
> > One problem is that the the sysV version uses bash computing to search
> > a list of random file names. I have created a bash file that does this
> > then execs rngd. I have tested this on my raspberry PI which runs
> > systemd version 44. Changes may be required to upgrade to current
> > version.
> 
> This is mostly backwards-compatibility stuff.  There is no need to carry
> it forward in the systemd unit file, AFAIK: if a kernel is new enough to
> be able to run the udev version required by systemd, it is new enough to
> have a modern device node for the random device driver.
> 

OK how about this?
------------rand-server.service----
# Author: Paul Elliott <pelli...@blackpatchpanel.com>
#
# License GPLv2+

[Unit]
Description=Add entropy to /dev/random 's pool a hardware RNG
# the sysV init script mentions  $remote_fs $syslog so,
# in the spirit of cargo cult programming....
After=remote-fs.target
Requires=remote-fs.target
After=syslog.target
Requires=syslog.target

[Service]
Type=simple
#because simple don't need to fork i.e. "-f"
ExecStart=/usr/sbin/rngd -r /dev/hwrng -f



[Install]
WantedBy=basic.target
------------rand-server.service----



-- 
Paul Elliott                               1(512)837-1096
pelli...@blackpatchpanel.com               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117

Attachment: signature.asc
Description: Digital signature

Reply via email to