Skip to main content
Version: Next

LifecycleService

Home > @backstage/backend-plugin-api > LifecycleService

Provides registration of plugin startup and shutdown lifecycle hooks.

See the service documentation for more details.

Signature:

export interface LifecycleService 

Methods

Method

Description

addShutdownHook(hook, options)

Register a function to be called when the backend is shutting down.

addStartupHook(hook, options)

Register a function to be called when the backend has been initialized.