]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
systemd: Reexec systemd after update.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 21 Jun 2015 20:23:52 +0000 (22:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Jun 2015 20:26:41 +0000 (22:26 +0200)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
systemd/systemd.nm

index 3ed1b5b978963a51d3250789536a417d13702714..747983c054a17fbd381843bda48649b9b03249ab 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = systemd
 version    = 215
-release    = 1
+release    = 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-reexec
+
                        # 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 || :