tinc: reload instead of restart

This commit is contained in:
Jörg Thalheim 2020-12-12 07:45:02 +01:00
parent 6ee216dfb5
commit 6562fb28a1
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
1 changed files with 6 additions and 2 deletions

View File

@ -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}".restartIfChanged = false;
systemd.services."tinc.${netname}" = {
# 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.allowedUDPPorts = [ 655 ];