cofractal-ams01: make bindMountSvc more stable

This commit is contained in:
Luke Granger-Brown 2023-08-17 02:50:57 +00:00
parent a7cf52919d
commit b985351394

View file

@ -180,8 +180,9 @@ in
where = dir;
};
bindMountSvc = dir: svc: (bindMount' dir) // {
bindsTo = [svc];
partOf = [svc];
requiredBy = [svc];
before = [svc];
wantedBy = ["multi-user.target"];
};
bindMountSvcDynamic = dir: svc: (bindMount' "/var/lib/private/${dir}") // {
requiredBy = [svc];