public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] systemd: Reexec systemd after update.
@ 2015-06-21 20:02 Stefan Schantl
  2015-06-21 20:11 ` Michael Tremer
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Schantl @ 2015-06-21 20:02 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 921 bytes --]

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(a)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
 
 maintainer = Stefan Schantl <stefan.schantl(a)ipfire.org>
 groups     = System/Base
@@ -226,6 +226,9 @@ packages
 		end
 
 		script postup
+			# Re-exec systemd after update.
+			/usr/bin/systemctl daemon-reexe
+
 			# 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 || :
-- 
2.1.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-21 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-21 20:02 [PATCH] systemd: Reexec systemd after update Stefan Schantl
2015-06-21 20:11 ` Michael Tremer
2015-06-21 20:23   ` Stefan Schantl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox