WildFly CLI - Starting and Stopping Instances: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


* [[WildFly CLI Operations#Subjects|WildFly CLI Operations]]
* [[WildFly CLI Operations#Subjects|WildFly CLI Operations]]
=Overview=
There is a <tt>shutdown</tt> command and a <tt>:shutdown</tt> operation. The <tt>shutdown</tt> commands sends the <tt>:shutdown</tt> operation to the server (in standalone mode) or to the host controller specified by the <tt>--host=...</tt> argument and waits for the controller to close connection.
By default there's no restart.
The target can be restarted if <tt>--restart=true</tt> argument is used.
!!!Shutdown of Specific Server Instance
<font color=red>Was not able to figure it out, it might not be possible, according to the documentation, shutdown only works on hosts.
</font>
!!!Operation instead of Command
{{{
:shutdown
}}}
If we want to shutdown a remote host (with all its 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.
__Referenced by:__\\
[{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]





Revision as of 07:43, 24 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.


!!!Shutdown of Specific Server Instance

Was not able to figure it out, it might not be possible, according to the documentation, shutdown only works on hosts.

!!!Operation instead of Command

{{{

shutdown

}}}

If we want to shutdown a remote host (with all its 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.


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


Also see:

reload