blob: ccc414a60c7316dca28f9349c845f1a262677ba1 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/nfs: start/stop nfs daemons needed by nfs client and server
4 #
5
6 PIPEFS=/var/lib/nfs/rpc_pipefs
7
8 case $1 in
9 start)
10 /bin/mount -t rpc_pipefs rpc_pipefs $PIPEFS
11 /usr/sbin/sm-notify
12 /etc/rc.d/rpc.idmapd start
13 /etc/rc.d/rpc.statd start
14 ;;
15 stop)
16 /etc/rc.d/rpc.statd stop
17 /etc/rc.d/rpc.idmapd stop
18 /bin/umount $PIPEFS
19 ;;
20 restart)
21 $0 stop
22 $0 start
23 ;;
24 status)
25 /etc/rc.d/rpc.idmapd status
26 /etc/rc.d/rpc.statd status
27 ;;
28 *)
29 echo "usage: $0 [start|stop|restart|status]"
30 ;;
31 esac
32
33 # End of file
|