
after=`expr $line + 1`
sed -e "${after}d" -e "${before}d" agent-configuration.xml > agent-configuration.xml2
mv agent-configuration.xml2 agent-configuration.xml
sed -e '/rhq.agent.configuration-setup-flag/s/false/true/g' agent-configuration.xml > agent-
configuration.xml2
mv agent-configuration.xml2 agent-configuration.xml
sed -e "/rhq.agent.server.bind-address/s/value=\".*\"/value=\"ra-jon-
vm.cloud.lab.eng.bos.redhat.com\"/g" agent-configuration.xml > agent-configuration.xml2
mv agent-configuration.xml2 agent-configuration.xml
cd /root/rhq-agent/bin
mv rhq-agent-env.sh rhq-agent-env.sh.orig
wget http://rhcf-sat-vm.cloud.lab.eng.bos.redhat.com/pub/kits/rhq-agent-env.sh
# configure JON agent to auto start
cd /etc/init.d
# sed -e "s/readlink/readlink -e/g" /root/rhq-agent/bin/rhq-agent-wrapper.sh > /root/rhq-agent/bin/rhq-
agent-wrapper.sh2
# mv /root/rhq-agent/bin/rhq-agent-wrapper.sh2 /root/rhq-agent/bin/rhq-agent-wrapper.sh
sed -i 's/readlink/readlink -e/g' /root/rhq-agent/bin/rhq-agent-wrapper.sh
ln -s /root/rhq-agent/bin/rhq-agent-wrapper.sh .
chmod +x jboss-eap rhq-agent-wrapper.sh
/sbin/chkconfig --add rhq-agent-wrapper.sh
/sbin/chkconfig rhq-agent-wrapper.sh on
rhq-agent-env.sh
#=======================================================================
====
# RHQ Agent UNIX Startup Script Configuration File
#=======================================================================
====
#
# RHQ_AGENT_DEBUG - If this is defined, the script will emit debug
# messages. It will also enable debug
# messages to be emitted from the agent itself.
# If not set or set to "false", debug is turned off.
www.redhat.com 118
Comentarios a estos manuales