summaryrefslogtreecommitdiffstats
path: root/generic/etc/init.d/nfsd
blob: 170b85f9c11142c093bc4accb9c0bd1319c8d68b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# lauching NFS service
#
case "$1" in
   start)
		echo "Mounting nfsd virtual filesystem..."
		/bin/mount -t nfsd none /proc/fs/nfsd >/dev/null 2>&1

		echo "Starting NFS mountd..."
		/usr/sbin/mountd

		echo "Starting NFS nfsd..."
		/usr/sbin/rpc.nfsd -p 2049 3

		echo "Starting NFS statd..."
		/usr/sbin/rpc.statd

		echo "Exporting NFS Filesystems..."
		/usr/sbin/exportfs -ra >/dev/null 2>&1
		;;
esac