mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03: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 New Issue
Block a user