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:
Eelco Dolstra 2012-10-04 23:38:27 -04:00
parent 98c6c5b730
commit a5969634f4

View File

@ -347,10 +347,10 @@ in
serviceConfig =
{ ExecStart =
"${pkgs.openssh}/sbin/sshd -D -h ${cfg.hostKeyPath} " +
"${pkgs.openssh}/sbin/sshd -h ${cfg.hostKeyPath} " +
"-f ${pkgs.writeText "sshd_config" cfg.extraConfig}";
Restart = "always";
Type = "simple";
Type = "forking";
KillMode = "process";
PIDFile = "/run/sshd.pid";
};