Merge pull request #53050 from ajs124/openssh_extraconfig_restart

sshd: Add restartTrigger for sshd_config
This commit is contained in:
Franz Pletz 2019-01-02 19:17:23 +00:00 committed by GitHub
commit 0b25b9b342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,6 +352,10 @@ in
path = [ cfgc.package pkgs.gawk ];
environment.LD_LIBRARY_PATH = nssModulesPath;
restartTriggers = optionals (!cfg.startWhenNeeded) [
config.environment.etc."ssh/sshd_config".source
];
preStart =
''
# Make sure we don't write to stdout, since in case of
@ -387,6 +391,7 @@ in
Restart = "always";
Type = "simple";
});
};
in