summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-11-29 13:46:28 +0100
committerJörg Thalheim <joerg@thalheim.io>2020-12-12 07:37:16 +0100
commit2cdec00dd200991b2f4c517695896d6159fe3bcf (patch)
tree686b2be1ba84e4084777e41c3e18906a920af30a /nixos/modules
parent2864156233f4e2e899ddbdeac1f8fe68426f811c (diff)
nixos/tinc: add reload command
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/tinc.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix
index 725bd9bf9403..b4b544a2413d 100644
--- a/nixos/modules/services/networking/tinc.nix
+++ b/nixos/modules/services/networking/tinc.nix
@@ -168,6 +168,7 @@ in
Type = "simple";
Restart = "always";
RestartSec = "3";
+ ExecReload = mkIf (versionAtLeast (getVersion data.package) "1.1pre") "${data.package}/bin/tinc -n ${network} reload";
ExecStart = "${data.package}/bin/tincd -D -U tinc.${network} -n ${network} ${optionalString (data.chroot) "-R"} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}";
};
preStart = ''