Skip Headers
Oracle GlassFish Server Reference Manual
Release 3.1.2

Part Number E24938-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

restart-domain

restarts the DAS of the specified domain

Synopsis

restart-domain [--help] [--debug ={true|false}] 
[--domaindir domaindir] 
[--force={true|false}] [--kill={false|true}] 
[domain-name]

Description

The restart-domain subcommand stops and then restarts the domain administration server (DAS) of the specified domain. If a domain is not specified, the default domain is assumed. If the domains directory contains two or more domains, the domain-name operand must be specified. If the DAS is not already running, the subcommand attempts to start it.

The restart-domain subcommand does not exit until the subcommand has verified that the domain has been stopped and restarted.

This subcommand is supported in local or remote mode. If you specify a host name, the subcommand assumes you are operating in remote mode, which means you must correctly authenticate to the remote server. In local mode, you normally do not need to authenticate to the server as long as you are running the subcommand as the same user who started the server.

Options

--help
-?

Displays the help text for the subcommand.

--debug

Specifies whether the domain is restarted with Java Platform Debugger Architecture (JPDA) debugging enabled.

Possible values are as follows:

true

The domain is restarted with JPDA debugging enabled and the port number for JPDA debugging is displayed.

false

The domain is restarted with JPDA debugging disabled (default).

The default is the current setting of this option for the domain that is being restarted.

--domaindir

The domain root directory, which contains the directory of the domain that is to be restarted. If specified, the path must be accessible in the file system. The default location of the domain root directory is as-install/domains.

--force

Specifies whether the domain is forcibly stopped immediately before it is restarted.

Possible values are as follows:

true

The domain is forcibly stopped immediately (default).

false

The subcommand waits until all threads that are associated with the domain are exited before stopping the domain.

--kill

Specifies whether the domain is killed before it is restarted by using functionality of the operating system to terminate the domain process.

Possible values are as follows:

false

The domain is not killed. The subcommand uses functionality of the Java platform to terminate the domain process (default).

true

The domain is killed. The subcommand uses functionality of the operating system to terminate the domain process.

Operands

domain-name

The name of the domain you want to restart. Default is the name specified during installation, usually domain1.

Examples

Example 1   Restarting a Domain

This example restarts mydomain4 in the default domains directory.

asadmin> restart-domain mydomain4
Successfully restarted the domain
Command restart-domain executed successfully. 

Exit Status

0

subcommand executed successfully

1

error in executing the subcommand

See Also

delete-domain(1), list-domains(1), start-domain(1), stop-domain(1)

asadmin(1M)

Java Platform Debugger Architecture (JPDA) (http://java.sun.com/javase/technologies/core/toolsapis/jpda/)