WildFly CLI - Starting and Stopping Instances: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
The target can be restarted if <tt>--restart=true</tt> argument is used.
The target can be restarted if <tt>--restart=true</tt> argument is used.


=Command Syntax=


!!!Shutdown of Specific Server Instance
<pre>
shutdown --host=h1 --restart=true
</pre>


<font color=red>Was not able to figure it out, it might not be possible, according to the documentation, shutdown only works on hosts.
=CLI Operations=
</font>


!!!Operation instead of Command
==Shutdown a Host Controller==


{{{
To shutdown a remote host controller, together with all its associated servers:
:shutdown
}}}


If we want to shutdown a remote host (with all its servers)
<pre>
 
{{{
/host=r4:shutdown
/host=r4:shutdown
}}}
</pre>


==Shutdown an Entire Cluster==


!!!Shutdown an Entire Cluster
<pre>
 
{{{
/host=h2:shutdown
/host=h2:shutdown
/host=h3:shutdown
/host=h3:shutdown
/host=h4:shutdown
/host=h4:shutdown
/host=h1:shutdown
/host=h1:shutdown
}}}
</pre>


Leave the domain controller for last.
Leave the domain controller for last.


 
=Also See=
__Referenced by:__\\
[{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]
 
 
Also see:


<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[reload]]
:[[reload]]
</blockquote>
</blockquote>

Latest revision as of 18:03, 29 February 2016

Internal

Overview

There is a shutdown command and a :shutdown operation. The shutdown commands sends the :shutdown operation to the server (in standalone mode) or to the host controller specified by the --host=... argument and waits for the controller to close connection.

By default there's no restart.

The target can be restarted if --restart=true argument is used.

Command Syntax

shutdown --host=h1 --restart=true

CLI Operations

Shutdown a Host Controller

To shutdown a remote host controller, together with all its associated servers:

/host=r4:shutdown

Shutdown an Entire Cluster

/host=h2:shutdown
/host=h3:shutdown
/host=h4:shutdown
/host=h1:shutdown

Leave the domain controller for last.

Also See

reload