farmRestart sends "restart" command to a running servlet-container process.

Syntax

gradle farmRestart

Effects

farmRestart does not build source code, it only sends "restart" command to localhost:servicePort. Usually farmRestart is used to restart servlet-container process started by farmStart[War][Debug].

Warning
do not try to restart servlet-container process with farmRestart, if it was started with appStart[War][Debug] or with farmStart[War][Debug] from another farm. Reason is simple: each farm may define it’s own set of TCP-ports in farm configuration, so farmRestart may be sending a command to incorrect port, when paired with wrong start task.