forked from mirrors/nixpkgs
nixos/tinydns: order service after network.target
In cases where you boot up really quickly (like in the VM test on a non-busy host), tinydns might want to bind before the loopback interface is fully up. Order tinydns after network.target to fix that.
This commit is contained in:
parent
a2429cffa3
commit
cbd9e9e01f
|
@ -37,6 +37,7 @@ with lib;
|
|||
systemd.services.tinydns = {
|
||||
description = "djbdns tinydns server";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
path = with pkgs; [ daemontools djbdns ];
|
||||
preStart = ''
|
||||
rm -rf /var/lib/tinydns
|
||||
|
|
Loading…
Reference in a new issue