# Startup automotic UNIX

**URL:** <https://techcommunity.softwareag.com/t/startup-automotic-unix/57997>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Add-on-Products, Adabas-D\
**Created:** [May 5, 2006, 8:36pm UTC](https://techcommunity.softwareag.com/t/startup-automotic-unix/57997 "2006-05-05T20:36:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moshe](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@moshe](https://techcommunity.softwareag.com/u/moshe)\
**Post date:** [May 5, 2006, 8:36pm UTC](https://techcommunity.softwareag.com/t/startup-automotic-unix/57997/1 "2006-05-05T20:36:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nick\_Parmley](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/nick_parmley/32/114_2.png) [@Nick\_Parmley](https://techcommunity.softwareag.com/u/Nick_Parmley)\
**Post date:** [August 30, 2006, 8:50pm UTC](https://techcommunity.softwareag.com/t/startup-automotic-unix/57997/2 "2006-08-30T20:50:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nick\_Parmley](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/nick_parmley/32/114_2.png) [@Nick\_Parmley](https://techcommunity.softwareag.com/u/Nick_Parmley)\
**Post date:** [August 30, 2006, 8:50pm UTC](https://techcommunity.softwareag.com/t/startup-automotic-unix/57997/3 "2006-08-30T20:50:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/startup-automotic-unix/57997/4 "2021-04-02T14:38:59Z")

</div>


