lib/invoker/process_manager.rb
def restart_process(reload_message)
      command_label = reload_message.process_name
      if stop_process(reload_message.remove_message)
        Invoker.commander.schedule_event(command_label, :worker_removed) do
          start_process_by_name(command_label)
        end
      else
        start_process_by_name(command_label)
      end
    end
# Receive a message from user to restart a Process
# @param [Invoker::IPC::Message::Reload]
Receive a message from user to restart a Process
Receive a message from user to restart a Process
def restart_process(reload_message)
      command_label = reload_message.process_name
      if stop_process(reload_message.remove_message)
        Invoker.commander.schedule_event(command_label, :worker_removed) do
          start_process_by_name(command_label)
        end
      else
        start_process_by_name(command_label)
      end
    end
def restart_process ( reload_message ) command_label = reload_message . process_name if stop_process ( reload_message . remove_message ) Invoker . commander . schedule_event ( command_label , :worker_removed ) do start_process_by_name ( command_label ) end else start_process_by_name ( command_label ) end end
Receive a message from user to restart a Process
Receive a message from user to restart a Process
reload_message
None