tsuki: add some systemd constraints

Add some systemd constraints to some fix boottime service failures
This commit is contained in:
Oystein Kristoffer Tveit 2023-02-25 21:12:38 +01:00
parent a08f6ce28e
commit 5b0dd71b4a
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 11 additions and 0 deletions

View File

@ -119,4 +119,10 @@
ensureUsers =
(o config.services.minecraft-servers.enable (db "dynmap"));
};
systemd.services.minecraft-server-kakuland.requires = [ "postgresql.service" ];
systemd.services.minecraft-server-kakuland.after = [
"postgresql.service"
"data2-momiji.mount"
];
}

View File

@ -4,5 +4,10 @@
enable = true;
port = secrets.ports.osuchan;
secretFile = "${config.machineVars.dataDrives.default}/keys/osuchan/envfile";
};
systemd.services.osuchan.after = [
"data2-momiji.mount"
];
}