IMQServiceOptions.handleSignals property

Let this package handle SIGTERM, SIGINT, SIGHUP and SIGQUIT for the process. Set it to false when the host owns shutdown.

Signature:

handleSignals?: boolean;

Default Value

true

Remarks

Left on, the service installs handlers that tear it down and exit the process after IMQ_SHUTDOWN_TIMEOUT, and its queue installs its own (see the core IMQOptions.handleSignals).

false stops both: the service installs no such handler and its queue none either, so the host's own handler decides when to call destroy(). With IMQServiceOptions.drain on, SIGTERM and SIGINT still start the drain — that is an opt-in of its own — so a host that owns those signals too leaves the drain off.

Handlers are process-wide: any other service or client in the process that leaves this on still exits the process on a signal.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.