[oe-commits] [openembedded-core] 16/54: rng-tools: fix very long shutdown delay with systemd
git at git.openembedded.org
git at git.openembedded.org
Mon Sep 30 15:45:19 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch warrior
in repository openembedded-core.
commit b6daf8a5755842c0e38b1a88687a18432138a45a
Author: Bedel, Alban <alban.bedel at aerq.com>
AuthorDate: Wed Jul 31 14:01:58 2019 +0000
rng-tools: fix very long shutdown delay with systemd
The systemd service file has DefaultDependencies=no but is not
properly configured to also stop the unit. Because of this the unit
keep running after shutdown but systemd still waits for it to finish to
then later resort to a hard kill. All this take 1m30s with the default
configuration.
To fix this problem add the missing Before=shutdown.target and
Conflicts=shutdown.target to have systemd stop the unit on shutdown.
Signed-off-by: Alban Bedel <alban.bedel at aerq.com>
Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
meta/recipes-support/rng-tools/rng-tools/rngd.service | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rngd.service
index f0355db..5c8253b 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rngd.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
@@ -2,7 +2,8 @@
Description=Hardware RNG Entropy Gatherer Daemon
DefaultDependencies=no
After=systemd-udev-settle.service
-Before=sysinit.target
+Before=sysinit.target shutdown.target
+Conflicts=shutdown.target
[Service]
ExecStart=@SBINDIR@/rngd -f -r /dev/hwrng
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list