opt/nfs-utils/nfs

30 lines
444 B
Plaintext
Raw Normal View History

2010-03-02 11:27:07 +01:00
#!/bin/sh
#
# /etc/rc.d/nfs: start/stop nfs daemons needed by nfs client and server
2010-03-02 11:27:07 +01:00
#
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
/etc/rc.d/rpc.idmapd start
/etc/rc.d/rpc.statd start
2010-03-02 11:27:07 +01:00
;;
stop)
/etc/rc.d/rpc.statd stop
/etc/rc.d/rpc.idmapd stop
2010-06-15 20:05:24 +02:00
/bin/umount $PIPEFS
2010-03-02 11:27:07 +01:00
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file