tinc: stopIfChanged = false instead of reload

This commit is contained in:
tv 2022-03-06 11:35:22 +01:00
parent ccc7796402
commit 4fa1783c64

View File

@ -242,7 +242,9 @@ with import <stockholm/lib>;
cfg.iproutePackage cfg.iproutePackage
cfg.tincPackage 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 = { serviceConfig = {
Restart = "always"; Restart = "always";
LoadCredential = filter (x: x != "") [ LoadCredential = filter (x: x != "") [
@ -270,7 +272,6 @@ with import <stockholm/lib>;
"-o PrivateKeyFile=\${CREDENTIALS_DIRECTORY}/rsa_key" "-o PrivateKeyFile=\${CREDENTIALS_DIRECTORY}/rsa_key"
"--pidfile=/var/run/tinc.${netname}.pid" "--pidfile=/var/run/tinc.${netname}.pid"
]; ];
ExecReload = "${cfg.tincPackage}/sbin/tinc -n ${netname} restart";
SyslogIdentifier = netname; SyslogIdentifier = netname;
}; };
}) config.krebs.tinc; }) config.krebs.tinc;