Merge "Allow to pass run options to daemon with gerrit.sh"
This commit is contained in:
@@ -1015,6 +1015,15 @@ configuration:
|
||||
javaOptions = -Dlog4j.configuration=file:///home/gerrit/site/etc/log4j.properties
|
||||
----
|
||||
|
||||
[[container.daemonOpt]]container.daemonOpt::
|
||||
+
|
||||
Additional options to pass to the daemon (e.g. '--enable-httpd'). If
|
||||
multiple values are configured, they are passed in that order to the command
|
||||
line, separated by spaces.
|
||||
+
|
||||
Execute `java -jar gerrit.war daemon --help` to see all possible
|
||||
options.
|
||||
|
||||
[[container.slave]]container.slave::
|
||||
+
|
||||
Used on Gerrit slave installations. If set to true the Gerrit JVM is
|
||||
|
@@ -326,6 +326,11 @@ RUN_ARGS="-jar $GERRIT_WAR daemon -d $GERRIT_SITE"
|
||||
if test "`get_config --bool container.slave`" = "true" ; then
|
||||
RUN_ARGS="$RUN_ARGS --slave"
|
||||
fi
|
||||
DAEMON_OPTS=`get_config --get-all container.daemonOpt`
|
||||
if test -n "$DAEMON_OPTS" ; then
|
||||
RUN_ARGS="$RUN_ARGS $DAEMON_OPTS"
|
||||
fi
|
||||
|
||||
if test -n "$JAVA_OPTIONS" ; then
|
||||
RUN_ARGS="$JAVA_OPTIONS $RUN_ARGS"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user