Bug 536216 (RHQ-590)

Summary: externalize RHQ_* environment variables from Server and Agent start scripts into separate "conf" files (analgous to JBAS run.conf file or IntelliJ idea.exe.vmoptions file)
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: AgentAssignee: Ian Springer <ian.springer>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: asantos, ccrouch, cwelton, jshaughn, mazz
Target Milestone: ---Keywords: Improvement
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-590
Whiteboard:
Fixed In Version: 1.4 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 22:01:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Springer 2008-06-17 22:43:00 UTC
These conf files (e.g. rhq-server-env.sh/bat and rhq-agent-env.sh/bat) would be sourced by the respective start scripts

This will allow users to externalize JVM, debug, etc. settings and easily migrate them when upgrading to a new version of JON, rather than having to merge their changes into the potentially updated start scripts.



Comment 1 Ian Springer 2008-07-17 15:39:00 UTC
Agent half of this is done - r1111.


Comment 2 Greg Hinkle 2008-10-02 17:32:13 UTC
server half of this will have to wait for 1.2

Comment 3 John Mazzitelli 2009-03-03 19:24:27 UTC
do not touch the way the agent configures its env vars anymore - we now have the agent plugin able to modify the config and it requires things to be the way they are now (-env.bat.sh). agent auto-update also keeps these -env scripts so they are maintained during upgrades

Comment 4 Red Hat Bugzilla 2009-11-10 21:12:33 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-590


Comment 5 Joseph Marques 2010-10-05 16:04:24 UTC
ips, mazz - what (if anything) else needs to happen for this BZ?

Comment 6 John Mazzitelli 2010-10-07 12:52:54 UTC
nothing left to do on the agent side.

the server configuration is different depending on if you are on Windows or UNIX platforms (because of the usage of Java Service Wrapper on Windows) so its not going to be trivial to get the server to be easily configurable in the same way for both Windows and UNIX anyway.

I say we close this. The agent configuration was done but I don't think we need to do this for the server. The agent is the thing we most wanted to make it easier for upgrades and we did that.

Comment 7 Jay Shaughnessy 2013-02-26 22:01:44 UTC
Closing, we're not doing this.