NonStop Software

The configure Source File

Previous Topic | Next Topic | Contents | Index
Getting Started Guide | Programmer's Guide | Reference Guide

configure Source

The distribution configure file:

#!/bin/sh

# Set filecode for SRLs
gtacl -p fup "alter $NSD_SUBVOL.nsdgsrl, code 700"
gtacl -p fup "alter $NSD_SUBVOL.nsdsrl,  code 700"

cfgmgt <<\END
dbcreate        ;# Create a database
set myExit 0    ;# default exit code
set myExit [catch {source $env(MY_ROOT)/etc/default.db}]
exit $myExit
END
if [ $? -ne 0 ]
then
    echo "cfgmgt initialization Failed"
    exit 1
else
    echo "cfgmgt initialization Completed"
fi

# Force the LSD to record its actual tcp address
lsd -ORBprofile lsd1 -configure
LSD_RETURN_CODE=$?
if [ LSD_RETURN_CODE -eq 0 ]; then
    echo "LSD initialization Completed"
else
    if [ LSD_RETURN_CODE -ne 126 ]; then
        echo "LSD initialization Failed"
        exit 1
    else
        echo "\nFixing SRL and lsd and re-try initialize lsd\n"
        nld -L $NSD_DIR -l nsdsrl -l ZCPLSRL -l zcresrl -l zcrtlsrl -srl_fixup lsd > /dev/null
        cd $NSD_DIR
        gtacl -p nld "-l zcplsrl -l zcresrl -l zcrtlsrl -l zossfsrl -l zossesrl -l zinetsrl -srl_fixup nsdsrl" > /dev/null
        lsd -ORBprofile lsd1 -configure
        LSD_NEW_RETURN_CODE=$?
        if [ LSD_NEW_RETURN_CODE -eq 0 ]; then
            echo "LSD initialization Completed"
        else
            if [ LSD_NEW_RETURN_CODE -ne 126 ]; then
                echo "LSD initialization Failed"
                exit 1
            else
                echo "\nLSD initialization Failed.  Due to an unexpected problem with nld fixup command."
                exit 2
            fi
        fi
    fi
fi

# Startup the Name Service init
run -name=/G/"$MY_PREFIX"nd0 ns_init -ORBprofile NS
if [ $? -ne 0 ]
then
    exit 1
fi

Previous Topic | Next Topic | Contents | Top
Getting Started Guide | Programmer's Guide | Reference Guide
Bibliography | Glossary | Index
© Tandem, a division of Compaq. All rights reserved. Legal notices.