fix(systemd): move the storage guard into [Unit] (T4/T52)
mkStorageGuard returned a serviceConfig fragment, so ConditionPathIsMountPoint
landed in [Service] where systemd ignores it - the guard was dead on 13 units.
- helper now returns a unitConfig fragment ([Unit]); RequiresMountsFor still
intentionally absent
- consumers re-pointed at the real unit names: samba-smbd, phpfpm-nextcloud,
immich-server, podman-3xui_app, podman-taperotation-{backend,frontend};
the old serviceConfig keys silently rendered three empty phantom units
- vds excluded: otreca has no /home/oqyude/External and a live condition would
skip podman-3xui_app and kill the 3x-ui panel at pubray1.zeroq.su
Verified: sapphira and otreca toplevel builds exit 0; all 13 units carry the
condition under [Unit] (line 3), zero occurrences under [Service].
This commit is contained in:
1 parent
8079536db2
commit
69691f96d1
13 files changed
+102
-32
No files matched your search
@@ -84,7 +84,11 @@ in
|
||||
systemd = {
|
||||
services = {
|
||||
"podman-3xui_app" = {
|
||||
serviceConfig = xlib.helpers.mkStorageGuard xlib // {
|
||||
# Guard goes to `unitConfig` → `[Unit]`: `ConditionPathIsMountPoint`
|
||||
# is a unit-level directive and is ignored by systemd in `[Service]`
|
||||
# (T4/R1.2).
|
||||
unitConfig = xlib.helpers.mkStorageGuard xlib;
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 90 "always";
|
||||
};
|
||||
partOf = [ "podman-compose-3x-ui-root.target" ];
|
||||
|
||||
@@ -102,7 +102,11 @@ in
|
||||
systemd = {
|
||||
services = {
|
||||
"podman-taperotation-backend" = {
|
||||
serviceConfig = xlib.helpers.mkStorageGuard xlib // {
|
||||
# Guard goes to `unitConfig` → `[Unit]`: `ConditionPathIsMountPoint`
|
||||
# is a unit-level directive and is ignored by systemd in `[Service]`
|
||||
# (T4/R1.2).
|
||||
unitConfig = xlib.helpers.mkStorageGuard xlib;
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 90 "always";
|
||||
};
|
||||
after = [ "podman-network-taperotation_default.service" ];
|
||||
@@ -111,7 +115,11 @@ in
|
||||
wantedBy = [ "podman-compose-tape-rotation-root.target" ];
|
||||
};
|
||||
"podman-taperotation-frontend" = {
|
||||
serviceConfig = xlib.helpers.mkStorageGuard xlib // {
|
||||
# Guard goes to `unitConfig` → `[Unit]`: `ConditionPathIsMountPoint`
|
||||
# is a unit-level directive and is ignored by systemd in `[Service]`
|
||||
# (T4/R1.2).
|
||||
unitConfig = xlib.helpers.mkStorageGuard xlib;
|
||||
serviceConfig = {
|
||||
Restart = lib.mkOverride 90 "always";
|
||||
};
|
||||
after = [
|
||||
|
||||
Reference in new issue
Block a user