Specify ZFS datasets dependencies for each service
This commit is contained in:
parent
110a98c3d4
commit
27f170070c
|
@ -51,6 +51,13 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Start dendrite after config files are mounted
|
||||||
|
systemd.services.dendrite.unitConfig.RequiresMountsFor = [
|
||||||
|
/var/lib/matrix-as-facebook
|
||||||
|
/var/lib/matrix-as-signal
|
||||||
|
/var/lib/matrix-as-telegram
|
||||||
|
];
|
||||||
|
|
||||||
# Matrix bridges
|
# Matrix bridges
|
||||||
services.matrix-appservices = {
|
services.matrix-appservices = {
|
||||||
homeserver = "dendrite";
|
homeserver = "dendrite";
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
# Start services after ZFS mount
|
# Start services after ZFS mount
|
||||||
systemd.services.podman-mongodb.unitConfig.RequiresMountsFor =
|
systemd.services.podman-mongodb.unitConfig.RequiresMountsFor =
|
||||||
[ "vault.mount" ];
|
[ /vault/mongodb ];
|
||||||
systemd.services.podman-mqtt2prometheus.unitConfig.RequiresMountsFor =
|
systemd.services.podman-mqtt2prometheus.unitConfig.RequiresMountsFor =
|
||||||
[ "vault.mount" ];
|
[ /vault/mqtt2prometheus ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,8 +99,7 @@
|
||||||
|
|
||||||
# Start services after ZFS mount
|
# Start services after ZFS mount
|
||||||
systemd.services.syncthing.unitConfig.RequiresMountsFor =
|
systemd.services.syncthing.unitConfig.RequiresMountsFor =
|
||||||
[ "vault-syncthing.mount" ];
|
[ /vault/syncthing ];
|
||||||
systemd.services.radicale.unitConfig.RequiresMountsFor =
|
systemd.services.radicale.unitConfig.RequiresMountsFor = [ /vault/radicale ];
|
||||||
[ "vault-radicale.mount" ];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Start services after ZFS mount
|
# Start services after ZFS mount
|
||||||
systemd.services.gitea.unitConfig.RequiresMountsFor = [ "vault-git.mount" ];
|
systemd.services.gitea.unitConfig.RequiresMountsFor = [ /vault/git ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue