Hitachi

Hitachi Application Server V10 Command Reference Guide (For UNIX® Systems)


2.6.28 stop-servers

The stop-servers subcommand stops all the servers in a batch.

Synopsis

asadmin [asadmin_options] stop-servers [--graceful {false|true}]

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The stop-servers subcommand stops, in a batch, all the servers in the domain. If a dependency relation is set between servers, the dependent server is stopped first. If there are many dependencies, the servers are stopped in order beginning from the server at the lowest-level of the dependency tree. If no dependency is set between the servers, the subcommand processes all the servers simultaneously.

The processing to stop the server is not performed for a server that is already stopped.

This subcommand is supported only in the remote mode.

Execution permission

General user

Precondition

Various servers have been started.

Arguments

--graceful {false|true}

Specifies whether to stop the web servers in a planned termination. This argument is applicable only to web servers.

Type: Boolean

You can specify the following values:

  • true

    Stops the web server in a planned termination.

  • false

    Stops the web server normally.

Default value: true

Examples

The following example stops all the servers in the domain:

asadmin stop-servers

Exit Status

Exit Status

Explanation

0

Normal termination.

1

Abnormal termination.