Skip to content

Commit

Permalink
nixos/dnscrypt-proxy2: service restart on failure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
snicket2100 authored and bjornfor committed May 22, 2020
1 parent 288cc42 commit 866b411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/networking/dnscrypt-proxy2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ in
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
DynamicUser = true;
ExecStart = "${pkgs.dnscrypt-proxy2}/bin/dnscrypt-proxy -config ${cfg.configFile}";
Restart = "always";
};
};
};
Expand Down

0 comments on commit 866b411

Please sign in to comment.