stop constantly restarting

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-03 20:52:48 +01:00
parent afaeca4f02
commit a983b5ccbc
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -52,7 +52,8 @@ in
systemd.services.mautrix-whatsapp-genregistration = {
description = "Mautrix-Whatsapp Registration";
requiredBy = [ "matrix-synapse.service" ];
wantedBy = [ "matrix-synapse.service" ];
before = [ "matrix-synapse.service" ];
script = ''
# Not all secrets can be passed as environment variable (yet)
# https://github.com/tulir/mautrix-telegram/issues/584
@ -98,9 +99,8 @@ in
systemd.services.mautrix-whatsapp = {
description = "Mautrix-Whatsapp";
wantedBy = [ "multi-user.target" ];
wants = [ "matrix-synapse.service" ];
after = [ "matrix-synapse.service" ];
requires = [ "mautrix-whatsapp-genregistration.service" ];
wants = [ "matrix-synapse.service" "mautrix-whatsapp-genregistration.service" ];
after = [ "matrix-synapse.service" "mautrix-whatsapp-genregistration.service" ];
serviceConfig = {
Type = "simple";
Restart = "always";