Startup automotic UNIX

HI,

Are there any people to send the command to start the Adabas on boot machine, because I didn’t find the information in the MANUAL?

I use the release 13.01

Thanks,
Moshe

Hi Moshe,

We do the following:

function startAdaD
{
retval=0

    if [ ! -f "$adadtab" ]
    then
            print "Error - cannot find file $adadtab"
            retval=1
            return $retval
    fi

    if [ ! "$DBROOT" ]
    then
            print "Adabas D DBROOT environment not set up"
            retval=1
            return $retval
    fi

    print "Starting Adabas D"

    while read db user password id rest
    do
            su $id -c "x_clear $db" >/dev/null 2>&1
            su $id -c "x_start $db" >/dev/null 2>&1
            su $id -c "xutil -u $user,$password -d $db restart" >/dev/null 2

&1
done <$adadtab

    $DBROOT/pgm/vserver start >/dev/null 2>&1

    return $retval

}

Not too straightforward but does the job.

Regards,

Nick Parmley

Hi Moshe,

We do the following:

function startAdaD
{
retval=0

    if [ ! -f "$adadtab" ]
    then
            print "Error - cannot find file $adadtab"
            retval=1
            return $retval
    fi

    if [ ! "$DBROOT" ]
    then
            print "Adabas D DBROOT environment not set up"
            retval=1
            return $retval
    fi

    print "Starting Adabas D"

    while read db user password id rest
    do
            su $id -c "x_clear $db" >/dev/null 2>&1
            su $id -c "x_start $db" >/dev/null 2>&1
            su $id -c "xutil -u $user,$password -d $db restart" >/dev/null 2

&1
done <$adadtab

    $DBROOT/pgm/vserver start >/dev/null 2>&1

    return $retval

}

Not too straightforward but does the job.

Regards,

Nick Parmley