diff --git a/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt b/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt index 3ad350d..b9b6ec0 100644 --- a/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt +++ b/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt @@ -5,7 +5,7 @@ import no.nav.syfo.ApplicationState fun Application.configureLifecycleHooks(applicationState: ApplicationState) { - monitor.subscribe(ApplicationStarted) { applicationState.ready = true } + monitor.subscribe(ApplicationStarted) { applicationState.alive = true } monitor.subscribe(ServerReady) { applicationState.ready = true } monitor.subscribe(ApplicationStopped) { applicationState.ready = false