Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: services: ovirt-engine: support jvm args via config
......................................................................

packaging: services: ovirt-engine: support jvm args via config

Change-Id: I46c85c415975c4e6e287375ad7bc0a5bd43bf693
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M packaging/services/ovirt-engine/ovirt-engine.conf.in
M packaging/services/ovirt-engine/ovirt-engine.py
2 files changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/06/17506/1

diff --git a/packaging/services/ovirt-engine/ovirt-engine.conf.in 
b/packaging/services/ovirt-engine/ovirt-engine.conf.in
index 3cc7e24..14c1fbd 100644
--- a/packaging/services/ovirt-engine/ovirt-engine.conf.in
+++ b/packaging/services/ovirt-engine/ovirt-engine.conf.in
@@ -105,6 +105,11 @@
 ENGINE_PROPERTIES="${ENGINE_PROPERTIES} jsse.enableSNIExtension=false"
 
 #
+# Extra Java arguments to be added to command-line.
+#
+ENGINE_JVM_ARGS=""
+
+#
 # Additional applications to be deployed in the instance of the
 # application server started by the engine. This is a list of space
 # separated files or directories that should exist under
diff --git a/packaging/services/ovirt-engine/ovirt-engine.py 
b/packaging/services/ovirt-engine/ovirt-engine.py
index 45789cc..1c2a053 100755
--- a/packaging/services/ovirt-engine/ovirt-engine.py
+++ b/packaging/services/ovirt-engine/ovirt-engine.py
@@ -353,6 +353,10 @@
                 engineProperty = '-D' + engineProperty
             self._engineArgs.append(engineProperty)
 
+        # Add extra jvm arguments provided in the configuration:
+        for arg in shlex.split(self._config.get('ENGINE_JVM_ARGS')):
+            self._engineArgs.append(arg)
+
         # Add arguments for remote debugging of the java virtual machine:
         engineDebugAddress = self._config.get('ENGINE_DEBUG_ADDRESS')
         if engineDebugAddress:


-- 
To view, visit http://gerrit.ovirt.org/17506
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I46c85c415975c4e6e287375ad7bc0a5bd43bf693
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to