Automatically starting the WebSphere AppServer during system initialization
 Technote (troubleshooting)
 
Problem(Abstract)
You are wanting to start a IBM® WebSphere® Application Server during system initialization.
 
Cause
This requires root authority, and during initialization, scripts have no userid associated while executing.
 
Resolving the problem
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
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s): Linux
Software version: 6.0
Software edition:
Reference #: 1187790
IBM Group: Software Group
Modified date: Dec 7, 2006