summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-03-06 11:35:22 +0100
committertv <tv@krebsco.de>2022-03-06 17:32:48 +0100
commit4fa1783c64dccdc7ddc11057894fe44c0b100aaa (patch)
tree2720a58438e386849a4e70120eb4c081250d3463 /krebs
parentccc7796402ccdb9e2c10d6f7ebd46957d23b3cbb (diff)
tinc: stopIfChanged = false instead of reload
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/tinc.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix
index 8fb8961c6..9e0688d75 100644
--- a/krebs/3modules/tinc.nix
+++ b/krebs/3modules/tinc.nix
@@ -242,7 +242,9 @@ with import <stockholm/lib>;
cfg.iproutePackage
cfg.tincPackage
];
- reloadIfChanged = true;
+ # Restart the service in a single step in order to prevent potential
+ # connection timeouts and subsequent issues while deploying via tinc.
+ stopIfChanged = false;
serviceConfig = {
Restart = "always";
LoadCredential = filter (x: x != "") [
@@ -270,7 +272,6 @@ with import <stockholm/lib>;
"-o PrivateKeyFile=\${CREDENTIALS_DIRECTORY}/rsa_key"
"--pidfile=/var/run/tinc.${netname}.pid"
];
- ExecReload = "${cfg.tincPackage}/sbin/tinc -n ${netname} restart";
SyslogIdentifier = netname;
};
}) config.krebs.tinc;