diff options
| author | makefu <github@syntax-fehler.de> | 2023-12-04 15:06:05 +0100 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2023-12-04 15:06:05 +0100 |
| commit | 2ca25d5fc3b5bcabe15b0934208b5f5201420eb2 (patch) | |
| tree | e41e5c3114a57555eca53b4521b99c22ea2056ba /krebs/3modules/tinc.nix | |
| parent | f157c7b47f249470b4f5cebdc53ce391d938b0b4 (diff) | |
| parent | c660bedbb94a9a08c50050a3447f4fc5ba90fd69 (diff) | |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/3modules/tinc.nix')
| -rw-r--r-- | krebs/3modules/tinc.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix index 9df368cfb..d73d5ca61 100644 --- a/krebs/3modules/tinc.nix +++ b/krebs/3modules/tinc.nix @@ -208,10 +208,9 @@ with import ../../lib/pure.nix { inherit lib; }; { description = "Tinc daemon for ${netname}"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - # Restart the service in a single step in order to prevent potential - # connection timeouts and subsequent issues while deploying via tinc. - stopIfChanged = false; + reloadIfChanged = true; serviceConfig = { + ExecReload = "+${cfg.tincPackage}/sbin/tinc -n ${netname} reload"; Restart = "always"; LoadCredential = filter (x: x != "") [ (optionalString (cfg.privkey_ed25519 != null) |
