cluster/services/patroni: wait for consul
This commit is contained in:
parent
845f129fc1
commit
eb8591f81d
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ in
|
||||||
"d '${baseDir}' 0700 patroni patroni - -"
|
"d '${baseDir}' 0700 patroni patroni - -"
|
||||||
"d '${walDir}' 0700 patroni patroni - -"
|
"d '${walDir}' 0700 patroni patroni - -"
|
||||||
];
|
];
|
||||||
|
systemd.services.patroni = {
|
||||||
|
requires = [ "consul-ready.service" ];
|
||||||
|
after = [ "consul-ready.service" ];
|
||||||
|
};
|
||||||
services.patroni = {
|
services.patroni = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = hostName;
|
name = hostName;
|
||||||
|
|
Loading…
Reference in a new issue