aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/rng-tools/rng-tools/rngd.service
diff options
context:
space:
mode:
authorNicola Lunghi <nick83ola@gmail.com>2019-06-12 14:00:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-12 23:15:45 +0100
commit16ced1a253c74c01ca414db2f1a010c083213b91 (patch)
treea66a3b9824a5c47dfb00ed3d7a99c2e45a340eb7 /meta/recipes-support/rng-tools/rng-tools/rngd.service
parentca737408bb7e9dd24f3a18e60fad290c6e539b7b (diff)
downloadopenembedded-core-contrib-16ced1a253c74c01ca414db2f1a010c083213b91.tar.gz
rng-tools: harmonise systemd and sysvinit
this commit will permit to read the option from /etc/default/rng-tools both from systemd and sysvinit unit file. Signed-off-by: Nicola Lunghi <nick83ola@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/rng-tools/rng-tools/rngd.service')
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/rngd.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rngd.service
index f0355db14f..b1a78527be 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rngd.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
@@ -5,8 +5,8 @@ After=systemd-udev-settle.service
Before=sysinit.target
[Service]
-ExecStart=@SBINDIR@/rngd -f -r /dev/hwrng
-SuccessExitStatus=66
+EnvironmentFile=-@SYSCONFDIR@/default/rng-tools
+ExecStart=@SBINDIR@/rngd -f $EXTRA_ARGS
[Install]
WantedBy=multi-user.target