void-packages/srcpkgs/nfs-utils/files/rpcidmapd/run
Aloz1 5f86935a4c nfs-utils: Add/update runit services for other nfs/rpc daemons
Added runit services for rpc.idmapd, rpc.gssd, rpc.svcgssd and blkmapd
Fixed configure options to enable building svcgssd
Restructured statd and nfs-server services
2018-11-17 07:45:49 -02:00

16 lines
431 B
Bash
Executable file

#!/bin/sh
# Make sure the portmap service is running.
sv check rpcbind >/dev/null || exit 1
# Check/mount rpc_pipefs (loads sunrpc kernel module)
if ! mountpoint -q /var/lib/nfs/rpc_pipefs; then
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs -o defaults || exit 1
fi
# Check/mount nfsd (loads nfsd kernel module)
if ! mountpoint -q /proc/fs/nfsd; then
mount -t nfsd nfsd /proc/fs/nfsd || exit 1
fi
exec rpc.idmapd -f