diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt index 3f2d45bc16..8e47402bca 100644 --- a/Documentation/config-gerrit.txt +++ b/Documentation/config-gerrit.txt @@ -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 diff --git a/gerrit-pgm/src/main/resources/com/google/gerrit/pgm/init/gerrit.sh b/gerrit-pgm/src/main/resources/com/google/gerrit/pgm/init/gerrit.sh index 4b9b3ef05f..57411efaeb 100755 --- a/gerrit-pgm/src/main/resources/com/google/gerrit/pgm/init/gerrit.sh +++ b/gerrit-pgm/src/main/resources/com/google/gerrit/pgm/init/gerrit.sh @@ -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