CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
aumix: fixed url and description.
[attic/ports/opt-cross.git] / nfs-utils / nfsserver
1 #!/bin/sh
2 #
3 # /etc/rc.d/nfsserver: start/stop nfs server
4 #
5
6 case $1 in
7 start)
8 /bin/mount -t nfsd nfsd /proc/fs/nfsd
9 /usr/sbin/exportfs -r
10 /usr/sbin/rpc.mountd
11 /usr/sbin/rpc.statd --no-notify
12 /usr/sbin/rpc.nfsd 8
13 /usr/sbin/sm-notify
14 ;;
15 stop)
16 killall -q -2 nfsd
17 killall -q /usr/sbin/rpc.statd
18 killall -q /usr/sbin/rpc.mountd
19 /usr/sbin/exportfs -au
20 /bin/umount /proc/fs/nfsd
21 ;;
22 restart)
23 $0 stop
24 sleep 2
25 $0 start
26 ;;
27 *)
28 echo "usage: $0 [start|stop|restart]"
29 ;;
30 esac
31
32 # End of