addProvider(new DaemonRegistryServices(configuration.getBaseDir()));
addProvider(new GlobalScopeServices(true));
}
protected DaemonContext createDaemonContext() {
DaemonContextBuilder builder = new DaemonContextBuilder(get(ProcessEnvironment.class));
builder.setDaemonRegistryDir(configuration.getBaseDir());
builder.setIdleTimeout(configuration.getIdleTimeout());
builder.setUid(configuration.getUid());
LOGGER.debug("Creating daemon context with opts: {}", configuration.getJvmOptions());
builder.setDaemonOpts(configuration.getJvmOptions());
return builder.create();
}