]> code.ossystems Code Review - openembedded-core.git/commitdiff
psplash: Set RemainAfterExit on systemd units
authorAlex Kiernan <alex.kiernan@gmail.com>
Thu, 26 Mar 2020 08:54:24 +0000 (08:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Mar 2020 10:24:40 +0000 (10:24 +0000)
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>
meta/recipes-core/psplash/files/psplash-start.service
meta/recipes-core/psplash/files/psplash-systemd.service

index a8c97c7a7576f655b24fd60b4840386ab8fe6fda..36c2bb38e0722f05020e6d31ee6ab4286009937b 100644 (file)
@@ -6,6 +6,7 @@ RequiresMountsFor=/run
 [Service]
 Type=notify
 ExecStart=/usr/bin/psplash
+RemainAfterExit=yes
 
 [Install]
 WantedBy=sysinit.target
index 4e18980bb27134909f3a1721353d3c9b8f8d8bb1..082207f2324aae3a1a516ea11dd91446a3148dd7 100644 (file)
@@ -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