Page Contents

Home > @loopback/core > Application > setupShutdown

Application.setupShutdown() method

Set up signals that are captured to shutdown the application

Signature:

protected setupShutdown(signals: NodeJS.Signals[], gracePeriod?: number): void;

Parameters

Parameter Type Description
signals NodeJS.Signals[] An array of signals to be trapped
gracePeriod number A grace period in ms before forced exit

Returns:

void