nixos/dnscrypt-proxy2: service restart on failure
it does happen that `dnscrypt-proxy` exit when it is unable to
synchronise its resolvers metadata on startup. this can happen due
to network connectivity issues for example. not restarting it automatically
means no dns resolution will work until a manual restart is performed.
commit866b411ab67384ce43d44f321501564c1d99b2eb
authorsnicket2100 <57048005+snicket2100@users.noreply.github.com>
dateThu 7 May 2020, 00:00 (7 years ago)
parent288cc42
nixos/modules/services/networking/dnscrypt-proxy2.nix+1
@@ -55,6 +55,7 @@ in
5555 AmbientCapabilities = "CAP_NET_BIND_SERVICE";
5656 DynamicUser = true;
5757 ExecStart = "${pkgs.dnscrypt-proxy2}/bin/dnscrypt-proxy -config ${cfg.configFile}";
58+ Restart = "always";
5859 };
5960 };
6061 };