Specify dependencies on other services for matrix authentication service

Fixes matrix authentication service crashing on startup after a host reboot
because the network is down.
This commit is contained in:
fi 2025-02-14 13:20:51 +01:00
parent 1368fd8663
commit d8364d07c3

View file

@ -78,6 +78,9 @@ in
systemd.services.matrix-authentication-service = { systemd.services.matrix-authentication-service = {
description = "Matrix Authentication Service"; description = "Matrix Authentication Service";
after = [ "network-online.target" "postgresql.service" ];
requires = [ "postgresql.service" ];
wants = [ "network-online.target" ];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";