Due to the fact that rhq-agent-env.sh is used by both rhq-agent-wrapper.sh and rhq-agent.sh, users should never include --daemon when setting RHQ_AGENT_CMDLINE_OPTS in rhq-agent-env.sh. Including it there would cause the Agent to always start in daemon mode, even when started via rhq-agent.sh, which generally wouldn't make sense, since rhq-agent-wrapper.sh is the recommended way to start the Agent as a daemon. We should remove it from the commented out "#RHQ_AGENT_CMDLINE_OPTS=" line in the default rhq-agent-env.sh and add a comment telling users to never include --daemon in the value.
This is done in master - http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=0ed38f2
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE