Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1225

jboss-admin.sh fails to exit when run in single command mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.Final
    • 7.0.0.Final
    • CLI
    • None
    • Hide

      Run "./jboss-admin.sh --connect command=:shutdown" and this command fails to exit until it is killed.

      Show
      Run "./jboss-admin.sh --connect command=:shutdown" and this command fails to exit until it is killed.
    • Low

    Description

      This seems to be a new behavior, but regardless it is a problem that breaks other frameworks that call out to the command line shell with a single command and expect it to return. Currently it fails to exit, and callers hang. This is true both in the case of the server running with a management interface, and when one is missing:

      [269](ironmaiden:bin) > ./jboss-admin.sh --connect command=:shutdown
      Connected to standalone controller at localhost:9999
      Communication error: Channel closed
      Closed connection to localhost:9999
      ^C

      [270](ironmaiden:bin) > ./jboss-admin.sh --connect command=:shutdown
      The controller is not available at localhost:9999
      You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
      ^C

      When running a mode where the commands to run are from a file or command line, that is, non-interactive mode, the cli should exit with a status.

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            starksm64 Scott Stark (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: