Merge pull request #53050 from ajs124/openssh_extraconfig_restart
sshd: Add restartTrigger for sshd_config
This commit is contained in:
commit
0b25b9b342
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user