pdns now waits for psql

This commit is contained in:
mc-fucker 2022-08-05 12:13:12 +02:00
parent 62da3096e4
commit aacca32751

View file

@ -63,11 +63,16 @@ in
]; ];
systemd.services."powerdns-admin" = { systemd.services."powerdns-admin" = {
after = [ "postgresql.service" ];
serviceConfig = { serviceConfig = {
BindReadOnlyPaths = [ "/run/postgresql/.s.PGSQL.5432" ]; BindReadOnlyPaths = [ "/run/postgresql/.s.PGSQL.5432" ];
}; };
}; };
systemd.services."pdns.service" = {
after = [ "postgresql.service" ];
};
networking.firewall.allowedTCPPorts = [ 53 ]; networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ]; networking.firewall.allowedUDPPorts = [ 53 ];
} }