Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Administration Guide

- Previous: Chapter 18 Compiling and Configuring Apache Web Server
- Next: Restarting Automatically on the Microsoft Windows Platform

# Restarting Automatically on UNIX Platforms

To restart your domain on a UNIX platform, add a line of text to the `/etc/inittab` file.

If you use `/etc/rc.local,` or your system’s equivalent, place a line in `/etc/rc.local` that calls the desired `asadmin` command.

For example, to restart `domain1` for an Application Server installed in the `opt/SUNWappserver` directory, using a password file called `password.txt`:

    das:3:respawn:/opt/SUNWappserver/bin/asadmin start-domain --user admin
    --passwordfile /opt/SUNWappserver/password.txt domain1

Put the text on one line. The first three letters are a unique designator for the process and can be altered.

- Previous: Chapter 18 Compiling and Configuring Apache Web Server
- Next: Restarting Automatically on the Microsoft Windows Platform

- © 2010, Oracle Corporation and/or its affiliates