blob: 2f18b2c85a0e5f9cd72f152fd22af96bce094938 (
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
|
#!/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
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs defaults || exit 1
# Uncomment this and add the two daemons if you need kerberos support.
# sv check idmapd gssd >/dev/null || exit 1
mount -t nfsd nfsd /proc/fs/nfsd || exit 1
exportfs -ra > /dev/null || exit 1
rpc.nfsd -- $PROCESSES || exit 1
exec rpc.mountd --foreground
|