git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17503 from peterhoeg/ssh

ssh module: ignore exit code when socket activated

commitf4e1041e318ef83ede7b6162b87191f25f01e534 authorRobin Gloster <mail@glob.in> dateFri 5 Aug 2016, 19:58 (10 years ago) parentf044035c4cba0e
1 file changed+1
nixos/modules/services/networking/ssh/sshd.nix+1
nixos/modules/services/networking/ssh/sshd.nix+1
@@ -263,6 +263,7 @@ in
263263
264264 serviceConfig =
265265 { ExecStart =
266+ (optionalString cfg.startWhenNeeded "-") +
266267 "${cfgc.package}/bin/sshd " + (optionalString cfg.startWhenNeeded "-i ") +
267268 "-f ${pkgs.writeText "sshd_config" cfg.extraConfig}";
268269 KillMode = "process";