2010-03-02 11:27:07 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2015-03-05 14:54:32 +01:00
|
|
|
# /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
|
2015-03-05 14:54:32 +01:00
|
|
|
/etc/rc.d/rpc.idmapd start
|
|
|
|
/etc/rc.d/rpc.statd start
|
2010-03-02 11:27:07 +01:00
|
|
|
;;
|
|
|
|
stop)
|
2015-03-05 14:54:32 +01:00
|
|
|
/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
|
|
|
|
;;
|
2015-06-30 11:51:53 +02:00
|
|
|
status)
|
|
|
|
/etc/rc.d/rpc.idmapd status
|
|
|
|
/etc/rc.d/rpc.statd status
|
|
|
|
;;
|
2010-03-02 11:27:07 +01:00
|
|
|
*)
|
2015-06-30 11:51:53 +02:00
|
|
|
echo "usage: $0 [start|stop|restart|status]"
|
2010-03-02 11:27:07 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End of file
|