diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-07-29 22:22:41 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-08-03 17:57:17 +0200 |
commit | 80ada8c264e73426330c79e40e44f36ded7dcc19 (patch) | |
tree | dd34dd47e53720c68788abdadd9b7e65281f8d02 /sonar-application/src/main/java/org/sonar/application/App.java | |
parent | 17f3a477fd6119172c89057acb80693af21c5ae6 (diff) | |
download | sonarqube-80ada8c264e73426330c79e40e44f36ded7dcc19.tar.gz sonarqube-80ada8c264e73426330c79e40e44f36ded7dcc19.zip |
SONAR-7910 support sonar.cluster.web.disabled
Diffstat (limited to 'sonar-application/src/main/java/org/sonar/application/App.java')
-rw-r--r-- | sonar-application/src/main/java/org/sonar/application/App.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java index fcb41a63698..b8f08d18bf3 100644 --- a/sonar-application/src/main/java/org/sonar/application/App.java +++ b/sonar-application/src/main/java/org/sonar/application/App.java @@ -61,7 +61,10 @@ public class App implements Stoppable { // do not yet start WebServer nor CE on elasticsearch slaves if (StringUtils.isBlank(props.value(ProcessProperties.CLUSTER_MASTER_HOST))) { - commands.add(createWebServerCommand(props, homeDir)); + if (!props.valueAsBoolean(ProcessProperties.CLUSTER_WEB_DISABLED)) { + commands.add(createWebServerCommand(props, homeDir)); + } + if (!props.valueAsBoolean(ProcessProperties.CLUSTER_CE_DISABLED)) { commands.add(createCeServerCommand(props, homeDir)); } |