asadmin> start-domains domain1, payaradomain
Payara Server Management Asadmin Commands
This is a non-exhaustive list of asadmin commands which are exclusive to Payara Server for managing domains.
start-domain
- Usage
-
asadmin> start-domain <options> <domain>
- Aim
-
This command start the specified domain
Options | Type | Description | Default | Mandatory |
---|---|---|---|---|
verbose |
boolean |
starts the domain in verbose mode |
false |
No |
upgrade |
boolean |
false |
No |
|
watchdog |
boolean |
false |
No |
|
dry-run |
boolean |
false |
No |
|
drop-interrupted-commands |
boolean |
false |
No |
|
prebootcommandfile |
string |
path to file containing commands to run before booting the server. Only a limited amount of commands will work at this point. Since Payara Server 4.1.2.172 |
No |
|
postbootcommandfile |
String |
path to file containg commands to run after the server is booted. Since Payara Server 4.1.2.172 |
No |
start-domains
Since Payara Server 4.1.2.173
- Usage
-
asadmin> start-domains <list of domains>
- Aim
-
This command can be used to start the specified list of domains in the operand. This list must be specified as a comma separated string of values.
|
The domains will be started assuming default values for all options you would
specify when running the start-domain command against one domain (default domain directory,
debug mode off, verbose mode off, etc.)
|
Command Options
No command options available.
Example
To start the domain1
and payaradomain
domains, run the following command:
stop-domains
Since Payara Server 4.1.2.173
- Usage
-
asadmin> stop-domains <list of domains>
- Aim
-
This command can be used to stop the specified list of domains in the operand. This list must be specified as a comma separated string of values.
|
The domains will be stopped assuming default values for all options you would
specify when running the stop-domain command against one domain (forced stopping
and process killing)
|
Command Options
No command options available.
Example
To stop the domain1
and payaradomain
domains, run the following command:
asadmin> stop-domains domain1, payaradomain
restart-domains
Since Payara Server 4.1.2.173
- Usage
-
asadmin> restart-domains <list of domains>
- Aim
-
This command can be used to restart the specified list of domains in the operand. This list must be specified as a comma separated string of values.
Command Options
No command options available.
Example
To restart the domain1
and payaradomain
, run the following command:
asadmin> restart-domains domain1, payaradomain
stop-all-domains
- Usage
-
asadmin> stop-all-domains
- Aim
-
This command can be used to stop all running domains on the server installation.
Command Options
Option | Type | Description | Default | Mandatory |
---|---|---|---|---|
|
Boolean |
Specifies whether each domain is forcibly stopped immediately. |
true |
No |
|
Boolean |
Specifies whether the domain is killed by using functionality of the operating system to terminate the domain process |
false |
No |
Example
To forcibly stop all running domains, run the following command:
asadmin> stop-all-domains --force=false