blob: c3a456517c7ec1b321e820947956dc35f65afc5a (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/nfsserver: start/stop nfs server
4 #
5
6 case $1 in
7 start)
8 /usr/sbin/exportfs -r
9 /usr/sbin/rpc.nfsd 8
10 /usr/sbin/rpc.mountd
11 ;;
12 stop)
13 killall -q /usr/sbin/rpc.mountd
14 killall -q -2 nfsd
15 /usr/sbin/exportfs -au
16 ;;
17 restart)
18 $0 stop
19 sleep 2
20 $0 start
21 ;;
22 *)
23 echo "usage: $0 [start|stop|restart]"
24 ;;
25 esac
26
27 # End of file
|