lib/desi/process_manager.rb
def restart
      puts " * (Re)starting cluster" if @verbose
      stop if has_pid?
      puts " * Elastic Search #{running_version} started" if start_cluster && @verbose
      self
    end
# Restart the cluster
#
# Stop the cluster (if its up) and start it again.
#
# @note We use the pidfile to determine if the cluster is up. If a node was
#       started with another tool, you may end up with more than 1 node
#       running.
#
# @note This method will also output its result on STDOUT if +@verbose+ is
#       true
#
# @return [self]
#
# @api  public
Restart the cluster
Stop the cluster (if its up) and start it again.
Restart the cluster Stop the cluster ( if its up ) and start it again .
def restart
      puts " * (Re)starting cluster" if @verbose
      stop if has_pid?
      puts " * Elastic Search #{running_version} started" if start_cluster && @verbose
      self
    end
def restart puts " * (Re)starting cluster" if @verbose stop if has_pid? puts " * Elastic Search #{running_version} started" if start_cluster && @verbose self end
Restart the cluster
Stop the cluster (if its up) and start it again.
Restart the cluster Stop the cluster ( if its up ) and start it again .
None
self
note
We use the pidfile to determine if the cluster is up. If a node was started with another tool, you may end up with more than 1 node running.
We use the pidfile to determine if the cluster is up . If a node was started with another tool you may end up with more than 1 node running .
note
This method will also output its result on STDOUT if +@verbose+ is true
This method will also output its result on STDOUT if + @verbose + is true
api
None