jboss-admin.sh fails to exit when run in single command mode
------------------------------------------------------------
Key: AS7-1225
URL:
https://issues.jboss.org/browse/AS7-1225
Project: Application Server 7
Issue Type: Bug
Components: CLI
Affects Versions: 7.0.0.CR1
Reporter: Scott Stark
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira