services/sips: wait for postgres

This commit is contained in:
Max Headroom 2022-02-26 14:59:47 +01:00
parent d6b384362f
commit 90661a9a92

View file

@ -27,7 +27,7 @@ in
systemd.services.sips = { systemd.services.sips = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network.target" ]; after = [ "network.target" "postgresql.service" ];
requires = [ "sips-ipfs-api-proxy.service" ]; requires = [ "sips-ipfs-api-proxy.service" ];
serviceConfig = { serviceConfig = {
ExecStart = "${sips}/bin/sips --dbdriver postgres --db \"${connString}\" --addr 127.0.0.1:${config.portsStr.sipsInternal} --api http://127.0.0.1:${config.portsStr.sipsIpfsApiProxy} --apitimeout 604800s"; ExecStart = "${sips}/bin/sips --dbdriver postgres --db \"${connString}\" --addr 127.0.0.1:${config.portsStr.sipsInternal} --api http://127.0.0.1:${config.portsStr.sipsIpfsApiProxy} --apitimeout 604800s";