blob: de62efebd56f1e4505df09c6866f6b69e8ee3779 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/nfsserver: start/stop nfs server
4 #
5
6 NFSD=/proc/fs/nfsd
7
8 case $1 in
9 start)
10 /bin/mount -t nfsd nfsd $NFSD
11 /usr/sbin/exportfs -a
12 /etc/rc.d/rpc.mountd start
13 /etc/rc.d/rpc.nfsd start
14 /usr/sbin/sm-notify
15 /etc/rc.d/nfsdcld start
16 ;;
17 stop)
18 /etc/rc.d/rpc.nfsd stop
19 /etc/rc.d/rpc.mountd stop
20 /usr/sbin/exportfs -au
21 /etc/rc.d/nfsdcld stop
22 /bin/umount $NFSD
23 ;;
24 restart)
25 $0 stop
26 $0 start
27 ;;
28 status)
29 /etc/rc.d/rpc.mountd status
30 /etc/rc.d/rpc.nfsd status
31 /etc/rc.d/nfsdcld status
32 ;;
33 *)
34 echo "usage: $0 [start|stop|restart|status]"
35 ;;
36 esac
37
38 # End of file
|