log.info("Doing haproxy validate");
ProcessBuilder pb = new ProcessBuilder(HAPROXY_CMD.getAbsolutePath(), "-c", "-f", configFile.getAbsolutePath());
ProcessExecution execution = Processes.run(pb, TimeSpan.seconds(10));
if (!execution.didExit()) {
log.warn("Timeout while validating haproxy config.");
} else {
int exitCode = execution.getExitCode();
if (exitCode == 0) {
log.info("Validated config file");