summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2020-03-26 08:54:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-28 10:24:40 +0000
commit618bd9a10c27d13a4420638d82618ac41935cfda (patch)
tree20a83d04d32dace74f7ca12987ff5000de44d7c9
parentde035e687e26cef96e9b737c47bfc291bdfbea48 (diff)
downloadopenembedded-core-contrib-618bd9a10c27d13a4420638d82618ac41935cfda.tar.gz
psplash: Set RemainAfterExit on systemd units
psplash is only expected to run during startup, but if any dependency is pulled into a transaction and the unit is inactive, then it can be restarted. Set RemainAfterExit to ensure that the unit remains active and is not gratuitously restarted. Drop the nonexistent systemd-start.service from the unit. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/psplash/files/psplash-start.service1
-rw-r--r--meta/recipes-core/psplash/files/psplash-systemd.service2
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/psplash/files/psplash-start.service b/meta/recipes-core/psplash/files/psplash-start.service
index a8c97c7a75..36c2bb38e0 100644
--- a/meta/recipes-core/psplash/files/psplash-start.service
+++ b/meta/recipes-core/psplash/files/psplash-start.service
@@ -6,6 +6,7 @@ RequiresMountsFor=/run
[Service]
Type=notify
ExecStart=/usr/bin/psplash
+RemainAfterExit=yes
[Install]
WantedBy=sysinit.target
diff --git a/meta/recipes-core/psplash/files/psplash-systemd.service b/meta/recipes-core/psplash/files/psplash-systemd.service
index 4e18980bb2..082207f232 100644
--- a/meta/recipes-core/psplash/files/psplash-systemd.service
+++ b/meta/recipes-core/psplash/files/psplash-systemd.service
@@ -1,13 +1,13 @@
[Unit]
Description=Start psplash-systemd progress communication helper
DefaultDependencies=no
-After=systemd-start.service
After=psplash-start.service
Requires=psplash-start.service
RequiresMountsFor=/run
[Service]
ExecStart=/usr/bin/psplash-systemd
+RemainAfterExit=yes
[Install]
WantedBy=sysinit.target