mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
nixos/stubby: set Type=notify on the systemd service
Fixes some dependency ordering problems at boot time with services that require DNS. Without Type=notify these services might be started before stubby was ready to accept DNS requests.
This commit is contained in:
parent
d62f76f81d
commit
b8ef2285b5
|
@ -205,6 +205,7 @@ in
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
|
||||
CapabilityBoundingSet = "CAP_NET_BIND_SERVICE";
|
||||
ExecStart = "${pkgs.stubby}/bin/stubby -C ${confFile} ${optionalString cfg.debugLogging "-l"}";
|
||||
|
|
Loading…
Reference in a new issue