tinc: reload on change

This commit is contained in:
lassulus 2023-11-09 21:21:24 +01:00
parent c79f5fc9fa
commit 015ef28416
1 changed files with 2 additions and 3 deletions

View File

@ -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)