nixos/matrix-appservice-irc: wait for postgres to start

Closes: #178692
This commit is contained in:
Martin Weinelt 2022-06-24 08:37:43 +02:00
parent 419a091fda
commit 6c1f44b3f1
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -153,6 +153,9 @@ in {
systemd.services.matrix-appservice-irc = {
description = "Matrix-IRC bridge";
before = [ "matrix-synapse.service" ]; # So the registration can be used by Synapse
after = lib.optionals (cfg.settings.database.engine == "postgres") [
"postgresql.service"
];
wantedBy = [ "multi-user.target" ];
preStart = ''