Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1531

The HC shutdown operation should accept a restart-servers param like reload does

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • CLI, Management

      If a user uses a management op to restart the HC, e.g. one of these:

                
      [domain@localhost:9990 /] /host=master:shutdown(restart=true) 
      {"outcome" => "success"} 
      [domain@localhost:9990 /] shutdown --host=master --restart=true
      

      then they should also be able to configure restart-servers=false so the servers remain alive and reconnect to the HC when the PC spawns a new one.

      Doing "kill -9 <hc_pid>" works fine, with the PC spawning a new HC and the servers reconnecting, so it seems the main thing here is adding the parameter and wiring in the mechanicsm such that the ServerInventory doesn't stop the servers. Perhaps the same thing can be done as HostProcessReloadHandler does, using HostRunningModeControl.setRestartMode().

              lvydra Lukas Vydra
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: