Stale NFS handles inside containers (ESTALE/errno -116) can persist even after the host-side mount looks healthy, requiring a manual remount + container restart. Adds systemd mount-ready hooks (BindsTo) to restart immich_server/calibre/ocis when their NFS mount unit restarts, plus a 5-minute health-check timer that does a real nested read and force-remounts on staleness. Host files backed up under system-config/nfs-self-heal/ so they can be reinstalled after a host rebuild.
14 lines
292 B
Desktop File
14 lines
292 B
Desktop File
[Unit]
|
|
Description=Restart immich_server after NAS family mount is ready
|
|
After=mnt-nas_family.mount
|
|
Requires=mnt-nas_family.mount
|
|
BindsTo=mnt-nas_family.mount
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/docker restart immich_server
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=mnt-nas_family.mount
|