Stopping Liberty servers using the job manager
You can submit the Stop Liberty profile server job to stop a Liberty server on one or more target hosts.
Before you begin
Start the job manager if it is not already running.
The Liberty server that you want to stop must be running. See "Starting Liberty servers using the job manager."
Your ID at the job manager must be authorized for the administrator role or the operator role to submit jobs.
When registering a target host with the job manager, you can save operating system security information. When you submit a job to one or more targets for which security information has not been saved, you must specify an authorized operating system user name and either password or public-private key information for the user name. The security credentials must be valid for all job targets.
- Set the JAVA_HOME property to the JDK or JRE location in the server.env
file, which is located in the server directory. The job reads the JAVA_HOME
property and sets it on the target environment before running the command to start the server.
However, this property is not used by the Liberty server command if you start the server manually.
The server.env file must be in EBCDIC encoding.
Set the JAVA_HOME property to the JDK or JRE location in the user .bashrc file.
Append the JDK or JRE path to the PATH environment variable.
Set the JAVA_HOME property to the JDK or JRE location as a system environment variable.
Append the JDK or JRE path to the PATH system variable.
If JAVA_HOME is not specified in server.env or in the user environment, the job manager looks for the JDK or JRE in the user search path.
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Linux]](../images/linux.gif)
![[Solaris]](../images/solaris.gif)
![[z/OS]](../images/ngzos.gif)
- Login as root.
- In the /etc/ssh/sshd_config file, set PermitUserEnvironment to yes.
- Restart sshd. Run stopsrc -s ssh and then startsrc -s ssh.
- Login as the user to run the Liberty server.
- Change directory to the .ssh directory under the user home. Create a property file called environment and, in the file, set JAVA_HOME=absolute_path_to_the_Java_home.
About this task
You can use the administrative console of the job manager or the deployment manager to stop Liberty servers on one or more target hosts. From the console, choose the Stop Liberty server job, specify server and job options, review the summary, and submit the job.
Instead of using a console, you can run the stopLibertyProfileServer job script in the AdministrativeJobs command group. See the Administrative job types topic.
Procedure
Results
The targets run the job and attempt to stop the server.
What to do next
On the Job status page, click the ID of the Stop Liberty profile
server job and view the job status. Click the status refresh icon to refresh the displayed status.
If the job is not successful, view any error messages that result from running the job, correct the error condition, and submit the job again.
If the job is successful, the status on the Target resources page of the server is Stopped. Click to see the resource status.