blob: ae438d77e4be379c68a2e1ca91a6e27e55004a8a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
# Make sure the statd service is running.
sv check statd >/dev/null || exit 1
# Get the nfs service parameters from the LFS standard file
# this sets some envars.
if [ -e /etc/conf.d/nfs-server.conf ]; then
. /etc/conf.d/nfs-server.conf
fi
modprobe sunrpc || exit 1
modprobe nfs || exit 1
modprobe nfsd || exit 1
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
# Uncomment this and add the two daemons if you need kerberos support.
# sv check idmapd gssd >/dev/null || exit 1
if ! mountpoint -q /proc/fs/nfsd; then
mount -t nfsd nfsd /proc/fs/nfsd || exit 1
fi
exportfs -ra > /dev/null || exit 1
rpc.nfsd -- $PROCESSES || exit 1
exec rpc.mountd --foreground
|