+ if [ "$NEED_IDMAPD" = yes ]
+ then
+ log_progress_msg "idmapd"
+ start-stop-daemon --stop --oknodo --quiet \
+ --name rpc.idmapd
+ RET=$?
+ if [ $RET != 0 ]; then
+ log_end_msg $RET
+ exit $RET
+ fi
+ fi
+ if [ "$NEED_STATD" = yes ]
+ then
+ log_progress_msg "statd"
+ start-stop-daemon --stop --oknodo --quiet \
+ --name rpc.statd
+ RET=$?
+ if [ $RET != 0 ]; then
+ log_end_msg $RET
+ exit $RET
+ fi
+ fi
+ do_umount $PIPEFS_MOUNTPOINT 2>/dev/null || true
+ log_end_msg 0
+ ;;
+
+ status)
+ if [ "$NEED_STATD" = yes ]
+ then
+ if ! pidof rpc.statd >/dev/null
+ then
+ echo "rpc.statd not running"
+ exit 3
+ fi
+ fi
+
+ if [ "$NEED_GSSD" = yes ]
+ then
+ if ! pidof rpc.gssd >/dev/null
+ then
+ echo "rpc.gssd not running"
+ exit 3
+ fi
+ fi
+
+ if [ "$NEED_IDMAPD" = yes ]
+ then
+ if ! pidof rpc.idmapd >/dev/null
+ then
+ echo "rpc.idmapd not running"
+ exit 3
+ fi
+ fi
+
+ echo "all daemons running"
+ exit 0