opt/nfs-utils/nfs

33 lines
470 B
Plaintext
Raw Normal View History

2010-03-02 11:27:07 +01:00
#!/bin/sh
#
# /etc/rc.d/nfs: start/stop nfs client
#
2010-06-15 20:05:24 +02:00
PIPEFS=/var/lib/nfs/rpc_pipefs
2010-03-02 11:27:07 +01:00
case $1 in
start)
2010-06-15 20:05:24 +02:00
/bin/mount -t rpc_pipefs rpc_pipefs $PIPEFS
2010-03-02 11:27:07 +01:00
/usr/sbin/sm-notify
2010-06-15 20:05:24 +02:00
/usr/sbin/rpc.idmapd
2010-03-02 11:27:07 +01:00
/usr/sbin/rpc.statd
/bin/mount -a -t nfs
;;
stop)
/bin/umount -a -t nfs,nfs4
2010-03-02 11:27:07 +01:00
killall -q /usr/sbin/rpc.statd
2010-06-15 20:05:24 +02:00
killall -q /usr/sbin/rpc.idmapd
/bin/umount $PIPEFS
2010-03-02 11:27:07 +01:00
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file