pdns now waits for psql
This commit is contained in:
parent
62da3096e4
commit
aacca32751
1 changed files with 5 additions and 0 deletions
|
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue