override fun tryStartServices()

in entity-browser-app/src/main/kotlin/jetbrains/xodus/browser/web/PersistentWebApplication.kt [19:39]


    override fun tryStartServices(db: DBSummary, silent: Boolean): Boolean {
        if (allServices.containsKey(db.uuid)) {
            return true
        }
        val service = try {
            StoreService(db)
        } catch (e: DatabaseException) {
            if (silent) {
                null
            } else {
                throw e
            }
        } catch (e: Exception) {
            null
        }
        service?.let {
            allServices[db.uuid] = Services(it)
            databaseService.markStarted(db.uuid, true)
        }
        return service != null
    }