Commit | Line | Data |
---|---|---|
e72251b7 VM |
1 | #!/bin/sh |
2 | # | |
3 | # /etc/rc.d/nfs: start/stop nfs client | |
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 | /usr/sbin/rpc.idmapd | |
13 | /usr/sbin/rpc.statd | |
14 | /bin/mount -a -t nfs | |
15 | ;; | |
16 | stop) | |
17 | /bin/umount -a -t nfs | |
18 | killall -q /usr/sbin/rpc.statd | |
19 | killall -q /usr/sbin/rpc.idmapd | |
20 | /bin/umount $PIPEFS | |
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 file |