tinc: reload instead of restart
This commit is contained in:
parent
6ee216dfb5
commit
6562fb28a1
@ -65,8 +65,12 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Some hosts require VPN for nixos-rebuild, so we don't want to restart it on update
|
systemd.services."tinc.${netname}" = {
|
||||||
systemd.services."tinc.${netname}".restartIfChanged = false;
|
# Some hosts require VPN for nixos-rebuild, so we don't want to restart it on update
|
||||||
|
reloadIfChanged = true;
|
||||||
|
# also in https://github.com/NixOS/nixpkgs/pull/106715
|
||||||
|
serviceConfig.ExecReload = "${config.services.tinc.networks.${netname}.package}/bin/tinc -n ${netname} reload";
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 655 ];
|
networking.firewall.allowedTCPPorts = [ 655 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 655 ];
|
networking.firewall.allowedUDPPorts = [ 655 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user