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; where = dir;
}; };
bindMountSvc = dir: svc: (bindMount' dir) // { bindMountSvc = dir: svc: (bindMount' dir) // {
bindsTo = [svc]; requiredBy = [svc];
partOf = [svc]; before = [svc];
wantedBy = ["multi-user.target"];
}; };
bindMountSvcDynamic = dir: svc: (bindMount' "/var/lib/private/${dir}") // { bindMountSvcDynamic = dir: svc: (bindMount' "/var/lib/private/${dir}") // {
requiredBy = [svc]; requiredBy = [svc];