Type alias ReplaceServiceOptions

ReplaceServiceOptions: {
    configuration?: Record<string, any>;
    dependencies?: Record<string, string>;
    development?: boolean;
    force?: boolean;
    legacy?: boolean;
    setup?: boolean;
    teardown?: boolean;
}

Options for replacing a service.

See Database#replaceService.

Type declaration

  • Optional configuration?: Record<string, any>

    An object mapping configuration option names to values.

    See also Database#getServiceConfiguration.

  • Optional dependencies?: Record<string, string>

    An object mapping dependency aliases to mount points.

    See also Database#getServiceDependencies.

  • Optional development?: boolean

    Whether the service should be installed in development mode.

    See also Database#setServiceDevelopmentMode.

    Default: false

  • Optional force?: boolean

    If set to true, replacing a service that does not already exist will fall back to installing the new service.

    Default: false

  • Optional legacy?: boolean

    Whether the service should be installed in legacy compatibility mode

    This overrides the engines option in the service manifest (if any).

    Default: false

  • Optional setup?: boolean

    Whether the "setup" script should be executed.

    Default: true

  • Optional teardown?: boolean

    Whether the existing service's "teardown" script should be executed prior to removing that service.

    Default: true