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