From: Ray Strode Date: Sat, 2 Jun 2012 15:13:19 +0000 (-0400) Subject: main: rename process to be more systemd friendly X-Git-Tag: 0.8.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e5a276f322cfce46b5b2ed2125cb9ec67df7e9f;p=thirdparty%2Fplymouth.git main: rename process to be more systemd friendly 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 --- diff --git a/src/main.c b/src/main.c index c8c9f551..db0ac319 100644 --- a/src/main.c +++ b/src/main.c @@ -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)