modules/enterprise/agent/src/etc/rhq-agent-wrapper.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b3681f22dd3d7d893f57af56a9be6602111e3d7b
Author: John Mazzitelli <mazz(a)redhat.com>
Date: Thu Feb 27 16:38:00 2014 -0500
BZ 1044986 - fix rhqctl script so it doesn't hang when starting the agent in DEBUG
mode
diff --git a/modules/enterprise/agent/src/etc/rhq-agent-wrapper.sh
b/modules/enterprise/agent/src/etc/rhq-agent-wrapper.sh
index baaea2b..c898272 100755
--- a/modules/enterprise/agent/src/etc/rhq-agent-wrapper.sh
+++ b/modules/enterprise/agent/src/etc/rhq-agent-wrapper.sh
@@ -262,7 +262,7 @@ case "$1" in
# start the agent now!
if [ -n "$RHQ_AGENT_DEBUG" ] && [ "$RHQ_AGENT_DEBUG"
!= "false" ]; then
debug_wrapper_msg "Executing agent with command:
${RHQ_AGENT_START_COMMAND}"
- eval $RHQ_AGENT_START_COMMAND
+ eval "$RHQ_AGENT_START_COMMAND >
\"${RHQ_AGENT_HOME}/logs/${wrapper}\" 2>&1"
else
# since the start command may run as non-root user, ensure the old
# wrapper (which may be owned by root) is removed