mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +03:00
sshd: Do detach into the background
This is necessary to ensure that jobs that need to start after sshd
work properly.
This reverts 03f13a4939
.
This commit is contained in:
parent
98c6c5b730
commit
a5969634f4
1 changed files with 2 additions and 2 deletions
|
@ -347,10 +347,10 @@ in
|
||||||
|
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
{ ExecStart =
|
{ ExecStart =
|
||||||
"${pkgs.openssh}/sbin/sshd -D -h ${cfg.hostKeyPath} " +
|
"${pkgs.openssh}/sbin/sshd -h ${cfg.hostKeyPath} " +
|
||||||
"-f ${pkgs.writeText "sshd_config" cfg.extraConfig}";
|
"-f ${pkgs.writeText "sshd_config" cfg.extraConfig}";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
Type = "simple";
|
Type = "forking";
|
||||||
KillMode = "process";
|
KillMode = "process";
|
||||||
PIDFile = "/run/sshd.pid";
|
PIDFile = "/run/sshd.pid";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue