systemd: Reexec systemd after update.
Message ID | 1434916976-21899-1-git-send-email-stefan.schantl@ipfire.org |
---|---|
State | Superseded |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id 742AE60492 for <patchwork@ipfire.org>; Sun, 21 Jun 2015 22:03:24 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 36C581467; Sun, 21 Jun 2015 22:03:24 +0200 (CEST) Received: from acer.stevee (host228-133-28-81.hiway.at [81.28.133.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 7C76B44; Sun, 21 Jun 2015 22:03:22 +0200 (CEST) From: Stefan Schantl <stefan.schantl@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] systemd: Reexec systemd after update. Date: Sun, 21 Jun 2015 22:02:56 +0200 Message-Id: <1434916976-21899-1-git-send-email-stefan.schantl@ipfire.org> X-Mailer: git-send-email 2.1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Stefan Schantl
June 22, 2015, 6:02 a.m. UTC
Reexec the systemd init daemon after update from now. This will prevent
from leaving the system in an undefined / unuseable status.
Fixes #10820.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
systemd/systemd.nm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Comments
On Sun, 2015-06-21 at 22:02 +0200, Stefan Schantl wrote: > Reexec the systemd init daemon after update from now. This will prevent > from leaving the system in an undefined / unuseable status. > > Fixes #10820. > > Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> > --- > systemd/systemd.nm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/systemd/systemd.nm b/systemd/systemd.nm > index 3ed1b5b..123d48f 100644 > --- a/systemd/systemd.nm > +++ b/systemd/systemd.nm > @@ -5,7 +5,7 @@ > > name = systemd > version = 215 > -release = 1 > +release = 1.1 Why 1.1 and not 2? > > maintainer = Stefan Schantl <stefan.schantl@ipfire.org> > groups = System/Base > @@ -226,6 +226,9 @@ packages > end > > script postup > + # Re-exec systemd after update. > + /usr/bin/systemctl daemon-reexe Rejected as there is clearly a 'c' missing. > + > # Restart login service after update > /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : > /usr/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : Do we need the daemon-reload command after re-exec? -Michael