start

suspend fun start(configPath: String, debugLabel: String? = null): Service

Starts the service.

Parameters

configPath

path to the config directory of this service. If it doesn't exist, it's created automatically. The service requires both read and write access to it.

debugLabel

Optional label used to distinguish mutliple services running in the same process. Used mainly for testing and debugging the library itself.