cbe31ceec4de52538571b615baee224ba13de751
[openwrt/svn-archive/archive.git] / net / nfs-kernel-server / files / nfsd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=60
5 NFS_D=/var/lib/nfs
6
7 start() {
8 mkdir -p $NFS_D
9 touch $NFS_D/rmtab
10
11 /usr/sbin/rpc.statd
12 /usr/sbin/rpc.lockd
13 /usr/sbin/exportfs -r
14 /usr/sbin/rpc.nfsd
15 /usr/sbin/rpc.mountd
16 }
17
18 stop() {
19 killall rpc.mountd 2> /dev/null
20 killall -9 rpc.nfsd 2> /dev/null
21 /usr/sbin/exportfs -au
22 killall lockd 2> /dev/null
23 killall rpc.statd 2> /dev/null
24 }
25
26 reload() {
27 /usr/sbin/exportfs -r
28 }
29