Skip to content

Commit

Permalink
sshd: Add restartTrigger for sshd_config
Browse files Browse the repository at this point in the history
Co-Authored-By: Franz Pletz <fpletz@fnordicwalking.de>
  • Loading branch information
ajs124 and fpletz committed Jan 2, 2019
1 parent 0ea65cd commit 325e314
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos/modules/services/networking/ssh/sshd.nix
Expand Up @@ -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
Expand Down Expand Up @@ -387,6 +391,7 @@ in
Restart = "always";
Type = "simple";
});

};
in

Expand Down

0 comments on commit 325e314

Please sign in to comment.