|
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:
- Switch to the "root" user, and
- 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 |
|
|
|
|
|
|