systemd shenanigans
This commit is contained in:
parent
88b3a4b50e
commit
4082049095
3 changed files with 4 additions and 2 deletions
|
@ -26,7 +26,7 @@ photos.cy7.sh {
|
|||
reverse_proxy localhost:2283
|
||||
}
|
||||
|
||||
matrix.cy7.sh, chat.cything.io {
|
||||
chat.cything.io {
|
||||
import common
|
||||
reverse_proxy localhost:8448
|
||||
}
|
||||
|
|
|
@ -84,12 +84,13 @@ in
|
|||
|
||||
systemd.services.create-immich-net = {
|
||||
serviceConfig.Type = "oneshot";
|
||||
wantedBy = with config.virtualisation.oci-containers; [
|
||||
requiredBy = with config.virtualisation.oci-containers; [
|
||||
"${backend}-immich.service"
|
||||
"${backend}-immich-db.service"
|
||||
"${backend}-immich-redis.service"
|
||||
# "${backend}-immich-ml.service"
|
||||
];
|
||||
before = config.systemd.services.create-immich-net.requiredBy;
|
||||
script = ''
|
||||
${pkgs.podman}/bin/podman network exists immich-net || \
|
||||
${pkgs.podman}/bin/podman network create immich-net
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
description = "Mount the immich data remote";
|
||||
requires = [ "network-online.target" ];
|
||||
requiredBy = [ "podman-immich-server.service" ];
|
||||
before = [ "podman-immich-server.service" ];
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
ExecStartPre = "/usr/bin/env mkdir -p /mnt/photos";
|
||||
|
|
Loading…
Add table
Reference in a new issue