CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
18d65e6a551f68a4de9f098c1207426c339a6434
[ports/opt-arm.git] / nfs-utils / nfsserver
1 #!/bin/sh
2 #
3 # /etc/rc.d/nfsserver: start/stop nfs server
4 #
5
6 NFSD=/proc/fs/nfsd
7 PIPEFS=/var/lib/nfs/rpc_pipefs
8
9 case $1 in
10 start)
11 /bin/mount -t nfsd nfsd $NFSD
12 /bin/mount -t rpc_pipefs rpc_pipefs $PIPEFS
13 /usr/sbin/rpc.idmapd
14 /usr/sbin/exportfs -a
15 /usr/sbin/rpc.mountd
16 /usr/sbin/rpc.statd --no-notify
17 /usr/sbin/rpc.nfsd --syslog 8
18 /usr/sbin/sm-notify
19 ;;
20 stop)
21 killall -q -2 nfsd
22 killall -q /usr/sbin/rpc.statd
23 killall -q /usr/sbin/rpc.mountd
24 /usr/sbin/exportfs -au
25 killall -q /usr/sbin/rpc.idmapd
26 /bin/umount $PIPEFS
27 /bin/umount $NFSD
28 ;;
29 restart)
30 $0 stop
31 sleep 2
32 $0 start
33 ;;
34 *)
35 echo "usage: $0 [start|stop|restart]"
36 ;;
37 esac
38
39 # End of file