summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-01-29 19:14:53 +0100
committerlassulus <lassulus@lassul.us>2022-01-29 19:14:53 +0100
commitfca55dd3e94fed2a9d903341f0ffa79bc42f062d (patch)
treec156afee73e1a8ed755578bd9d6b82f0e885ce17 /krebs/3modules
parent57341fa82f22806032e5411261a7bba6d0c5384f (diff)
tinc: restart via reload for less downtimes
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/tinc.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix
index 21ddde1c6..4a54d2950 100644
--- a/krebs/3modules/tinc.nix
+++ b/krebs/3modules/tinc.nix
@@ -233,6 +233,7 @@ with import <stockholm/lib>;
cfg.iproutePackage
cfg.tincPackage
];
+ reloadIfChanged = true;
serviceConfig = {
Restart = "always";
LoadCredential = filter (x: x != "") [
@@ -260,7 +261,7 @@ with import <stockholm/lib>;
"-o PrivateKeyFile=\${CREDENTIALS_DIRECTORY}/rsa_key"
"--pidfile=/var/run/tinc.${netname}.pid"
];
- ExecReload = "${cfg.tincPackage}/sbin/tinc -n ${netname} reload";
+ ExecReload = "${cfg.tincPackage}/sbin/tinc -n ${netname} restart";
SyslogIdentifier = netname;
};
}) config.krebs.tinc;