summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/matrix
diff options
context:
space:
mode:
authorSophie Tauchert <sophie@999eagle.moe>2023-09-18 10:52:52 +0200
committerSophie Tauchert <sophie@999eagle.moe>2023-09-18 10:52:54 +0200
commit24f6a70abfa36d9a6c604bd324e4509e92777bc4 (patch)
treee4104a68ff1825fe324500a685501989c528f637 /nixos/modules/services/matrix
parentaed8a5c6cd849a8fa819ccdbd6877915227d500a (diff)
nixos/synapse: make sure workers require main process
This should ensure systemd handles starting all services (main and workers) in a single transaction, thus preserving unit orderings defined through After= even when not restarting the target.
Diffstat (limited to 'nixos/modules/services/matrix')
-rw-r--r--nixos/modules/services/matrix/synapse.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/matrix/synapse.nix b/nixos/modules/services/matrix/synapse.nix
index 0ece1cb48ce0..554e9ca2ecc3 100644
--- a/nixos/modules/services/matrix/synapse.nix
+++ b/nixos/modules/services/matrix/synapse.nix
@@ -1087,6 +1087,7 @@ in {
description = "Synapse Matrix worker ${name}";
# make sure the main process starts first for potential database migrations
after = [ "matrix-synapse.service" ];
+ requires = [ "matrix-synapse.service" ];
serviceConfig = {
ExecStart = ''
${cfg.package}/bin/synapse_worker \