opt/nfs-utils/nfs

34 lines
520 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
;;
status)
/etc/rc.d/rpc.idmapd status
/etc/rc.d/rpc.statd status
;;
2010-03-02 11:27:07 +01:00
*)
echo "usage: $0 [start|stop|restart|status]"
2010-03-02 11:27:07 +01:00
;;
esac
# End of file