Description of problem: missing "config" option in the "service jon-agent" Usage prompt Version-Release number of selected component (if applicable): 3.1.0 How reproducible: 100% Steps to Reproduce: 1. install agent 2. run "service agent" Actual results: Usage: /usr/share/jboss-on-3.1.0.GA/agent/bin/rhq-agent-wrapper.sh { start | stop | kill | restart | status } Expected results: Usage: /usr/share/jboss-on-3.1.0.GA/agent/bin/rhq-agent-wrapper.sh { config | start | stop | kill | restart | status } Additional info:
This covers changing the usage help text only, to include the new option
I need replication procedures to fill out the "install agent" step. What is being done to think that "config" is a valid option? Looking at that script itself, it does not accept "config" as a valid option: $ ./rhq-agent-wrapper.sh config Usage: ./rhq-agent-wrapper.sh { start | stop | kill | restart | status } It isn't accepted (which you can see when it behaves the same when giving it a bad option): $ ./rhq-agent-wrapper.sh blah Usage: ./rhq-agent-wrapper.sh { start | stop | kill | restart | status }
expect results suggestion as: Usage: service jon-agent { config | start | stop | kill | restart | status }
Moved the config option for the rpm init script to the product wrapper script. release/jon3.1.x branch commit: http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?h=release/jon3.1.x&id=97178358504e3807d4f8ce65fbd7a56b3bb24048
The CR1 build is available at https://brewweb.devel.redhat.com/buildinfo?buildID=231258. Moving to ON_QA.
[root@foleymonsterbox1 bin]# ./rhq-agent-wrapper.sh config Usage: ./rhq-agent-wrapper.sh { start | stop | kill | restart | status } [root@foleymonsterbox1 bin]#
Please repeat the test and compare the result with the result in comment #3 and the code commit from comment #4. The output shown in comment #7 is not valid and the agent RPM was not used for testing. Please use the agent RPM install in conjunction jon-agent service commands.
Verified on 3.1.1.GA for both the agent installed from rpm (using service jon-agent config) and from zip (using ./rhq-agent-wrapper.sh config)