Sun Java System Application Server Enterprise Edition 8.1 2005Q2 High Availability Administration Guide

ProcedureTo Configure automatic restart with Java Enterprise System on Solaris or Linux

Before You Begin

This section assumes you have a basic understanding of operating system initialization and runlevels. For information on these topics, see your operating system documentation.

  1. Ensure that your system has a default runlevel of 3 or 5.

    To check the default runlevel of your system, inspect the file /etc/inittab , and look for a line near the top similar to this:

    id:5:initdefault:

    This example shows a default runlevel of 5.

  2. Create the following softlinks to the file /etc/init.d/ma-initd :


    /etc/rc0.d/K20ma-initd
    /etc/rc1.d/K20ma-initd
    /etc/rc2.d/K20ma-initd
    /etc/rc3.d/S99ma-initd
    /etc/rc5.d/S99ma-initd
    /etc/rcS.d/K20ma-initd
  3. Reboot the machine.

Next Steps

To deactivate automatic start and stop of the agent, remove the links or change the letters K and S in the link names to lowercase.