lib/invoker/process_manager.rb
# Remove a process from list of processes managed by invoker supervisor.It also
# kills the process before removing it from the list.
#
# @param remove_message [Invoker::IPC::Message::Remove]
# @return [Boolean] if process existed and was removed else false
Remove a process from list of processes managed by invoker supervisor.It also
kills the process before removing it from the list.
Remove a process from list of processes managed by invoker supervisor . It also kills the process before removing it from the list .
def stop_process(remove_message)
      worker = workers[remove_message.process_name]
      command_label = remove_message.process_name
      return false unless worker
      signal_to_use = remove_message.signal || 'INT'
      Invoker::Logger.puts("Removing #{command_label} with signal #{signal_to_use}".colorize(:red))
      kill_or_remove_process(worker.pid, signal_to_use, command_label)
    end
def stop_process ( remove_message ) worker = workers [ remove_message . process_name ] command_label = remove_message . process_name return false unless worker signal_to_use = remove_message . signal || 'INT' Invoker :: Logger . puts ( "Removing #{command_label} with signal #{signal_to_use}" . colorize ( :red ) ) kill_or_remove_process ( worker . pid , signal_to_use , command_label ) end
Remove a process from list of processes managed by invoker supervisor.It also
kills the process before removing it from the list.
Remove a process from list of processes managed by invoker supervisor . It also kills the process before removing it from the list .
if process existed and was removed else false
if process existed and was removed else false
Boolean
remove_message
None