]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: rename process to be more systemd friendly
authorRay Strode <rstrode@redhat.com>
Sat, 2 Jun 2012 15:13:19 +0000 (11:13 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 6 Jun 2012 17:58:09 +0000 (13:58 -0400)
Systemd will cleanse the system of running processes
in the hand over from the initrd to the main root filesystem,
and at shutdown.

In both cases we want to keep on chugging, so we tag ourselves
in a way that systemd won't kill us.

See http://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons

src/main.c

index c8c9f551ed03ee6e7144093ae046125256e0df4f..db0ac3190de65f47941aec20d8ec094ecca7930d 100644 (file)
@@ -2416,6 +2416,13 @@ main (int    argc,
       return EX_OSERR;
     }
 
+  /* Make the first byte in argv be '@' so that we can survive systemd's killing
+   * spree when going from initrd to /, and so we stay alive all the way until
+   * the power is killed at shutdown.
+   * http://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons
+   */
+  argv[0][0] = '@';
+
   state.boot_buffer = ply_buffer_new ();
 
   if (attach_to_session)