void-packages/srcpkgs/nfs-utils/files/rpcgssd/run
classabbyamp 351646d5bd *: add exec 2>&1 to all existing services
except when it already exists, of course
2023-02-09 21:36:13 -05:00

12 lines
306 B
Bash
Executable file

#!/bin/sh
exec 2>&1
# 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
exec rpc.gssd -f