aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/main/java/org/sonar/application/App.java
diff options
context:
space:
mode:
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.java4
1 files changed, 3 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 057386624ea..fcb41a63698 100644
--- a/sonar-application/src/main/java/org/sonar/application/App.java
+++ b/sonar-application/src/main/java/org/sonar/application/App.java
@@ -62,7 +62,9 @@ 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));
- commands.add(createCeServerCommand(props, homeDir));
+ if (!props.valueAsBoolean(ProcessProperties.CLUSTER_CE_DISABLED)) {
+ commands.add(createCeServerCommand(props, homeDir));
+ }
}
return commands;