Automatically starting the WebSphere AppServer during system initialization
 Technote (FAQ)
 
Problem
You are wanting to start a WebSphere® Application Server during system initialization.
 
Cause
This requires root authority, and during initialization, scripts have no userid associated while executing.
 
Solution
Create a script to execute the "startServer" request, and have this request invoked as follows:

su - root -c /usr/WebSphere/AppServer/bin/startup.sh

The reason that this works is that even though no userid is in effect during initialization, it has some of the properties associated with the root, including the authority to "su" to other IDs and execute commands. The preceding command indicates that the initialization process should do the following:
  1. Switch to the "root" user, and

  2. Execute the "/usr/WebSphere/AppServer/bin/startup.sh" script which should contain something similar to the following:

    #!/usr/bin/ksh
    cd /usr/WebSphere/AppServer/bin
    ./startServer.sh server1

    Note: When you create this startup script, it should be given execute permission using:

    chmod +x startup.sh
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s): HP-UX
Software version: 4.0
Software edition:
Reference #: 1187790
IBM Group: Software Group
Modified date: Oct 21, 2004