- handleUnhandledRejection();
- handleUncaughtException();
- this.started = false;
- this.starting = false;
- this.stopping = false;
- this.initializedCounters = false;
- this.initializeCounters();
- this.workerImplementation = null;
- this.workerScript = join(
- dirname(fileURLToPath(import.meta.url)),
- `ChargingStationWorker${extname(fileURLToPath(import.meta.url))}`,
- );
- const uiServerConfiguration = Configuration.getConfigurationSection<UIServerConfiguration>(
- ConfigurationSection.uiServer,
- );
- uiServerConfiguration.enabled === true &&
- (this.uiServer = UIServerFactory.getUIServerImplementation(uiServerConfiguration));
- const performanceStorageConfiguration =
- Configuration.getConfigurationSection<StorageConfiguration>(
- ConfigurationSection.performanceStorage,
- );
- performanceStorageConfiguration.enabled === true &&
- (this.storage = StorageFactory.getStorage(
- performanceStorageConfiguration.type!,
- performanceStorageConfiguration.uri!,
- this.logPrefix(),
- ));
- // FIXME: Disabled until the spurious configuration file change detection on MacOS is identified
- // Configuration.configurationChangeCallback = async () => Bootstrap.getInstance().restart(false);
+ handleUnhandledRejection()
+ handleUncaughtException()
+ this.started = false
+ this.starting = false
+ this.stopping = false
+ this.initializedCounters = false
+ this.initializeCounters()
+ this.uiServer = UIServerFactory.getUIServerImplementation(
+ Configuration.getConfigurationSection<UIServerConfiguration>(ConfigurationSection.uiServer)
+ )
+ Configuration.configurationChangeCallback = async () => {
+ await Bootstrap.getInstance().restart(false)
+ }