tinc: reload on change
This commit is contained in:
parent
c79f5fc9fa
commit
015ef28416
@ -208,10 +208,9 @@ with import ../../lib/pure.nix { inherit lib; }; {
|
|||||||
description = "Tinc daemon for ${netname}";
|
description = "Tinc daemon for ${netname}";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
# Restart the service in a single step in order to prevent potential
|
reloadIfChanged = true;
|
||||||
# connection timeouts and subsequent issues while deploying via tinc.
|
|
||||||
stopIfChanged = false;
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecReload = "+${cfg.tincPackage}/sbin/tinc -n ${netname} reload";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
LoadCredential = filter (x: x != "") [
|
LoadCredential = filter (x: x != "") [
|
||||||
(optionalString (cfg.privkey_ed25519 != null)
|
(optionalString (cfg.privkey_ed25519 != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user