systemd: Reexec systemd after update.

Message ID 1434916976-21899-1-git-send-email-stefan.schantl@ipfire.org
State Superseded
Headers

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

Michael Tremer June 22, 2015, 6:11 a.m. UTC | #1
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