sshd: Do detach into the background
This is necessary to ensure that jobs that need to start after sshd work properly. This reverts 03f13a49392b90cdc54d8ff057cef76bf0379913.
This commit is contained in:
parent
98c6c5b730
commit
a5969634f4
@ -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…
x
Reference in New Issue
Block a user