From 596bd3716366ac497e5b12668e9fff7b7aa9e30c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 Apr 2014 11:22:31 +0200 Subject: [PATCH] Don't restart container shells in switch-to-configuration --- nixos/modules/virtualisation/container-config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/virtualisation/container-config.nix b/nixos/modules/virtualisation/container-config.nix index 21e64c8c0957..697c53ce7a20 100644 --- a/nixos/modules/virtualisation/container-config.nix +++ b/nixos/modules/virtualisation/container-config.nix @@ -28,6 +28,7 @@ with lib; ExecStart = "${pkgs.socat}/bin/socat -t0 - exec:${pkgs.shadow}/bin/login,pty,setsid,setpgid,stderr,ctty"; TimeoutStopSec = 1; # FIXME }; + restartIfChanged = false; }; # Also provide a root login prompt on /var/lib/root-login.socket @@ -52,6 +53,7 @@ with lib; ExecStart = "${pkgs.socat}/bin/socat -t0 - \"exec:${pkgs.shadow}/bin/login -f root,pty,setsid,setpgid,stderr,ctty\""; TimeoutStopSec = 1; # FIXME }; + restartIfChanged = false; }; # Provide a daemon on /var/lib/run-command.socket that reads a @@ -82,6 +84,7 @@ with lib; eval "command=($c)" exec "''${command[@]}" ''; + restartIfChanged = false; }; systemd.services.container-startup-done =