fdmove -c 2 1
if -t { test -x /usr/sbin/rpc.nfsd }
foreground { modprobe nfsd }
foreground { mount -t nfsd nfsd /proc/fs/nfsd }
foreground { s6-mkdir -p /run/rpc_pipefs }
foreground { mount -t rpc_pipefs rpc_pipefs /run/rpc_pipefs }
foreground { exportfs -r }
# NFSv4-only: -N 3 disables NFSv3 so rpc.nfsd does not try to register with
# rpcbind (which this s6 setup does not run) — a bare rpc.nfsd would enable v3
# and die with errno 111 (Connection refused). nfsdctl autostart is not used:
# on Ubuntu 26.04 it fails with "Address family not supported by protocol".
foreground { rpc.nfsd -N 3 8 }
/usr/lib/s6-rc/sources/nfsd/data/waitready
