summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorBedel, Alban <alban.bedel@aerq.com>2019-07-31 14:01:58 +0000
committerArmin Kuster <akuster808@gmail.com>2019-09-04 08:21:39 -0700
commitb6daf8a5755842c0e38b1a88687a18432138a45a (patch)
tree56c4ee84183edd7fddb94b1fed0ffd8f0636eca3 /meta/recipes-support
parent4f608782e43accb23aa144339ed9169b1718c4f0 (diff)
downloadopenembedded-core-b6daf8a5755842c0e38b1a88687a18432138a45a.tar.gz
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@aerq.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/rngd.service3
1 files changed, 2 insertions, 1 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..5c8253b5fb 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