sshd: Add restartTrigger for sshd_config

Co-Authored-By: Franz Pletz <fpletz@fnordicwalking.de>
This commit is contained in:
ajs124 2018-12-29 18:26:53 +01:00 committed by Franz Pletz
parent 0ea65cd96c
commit 325e314aae
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

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