# IMQServiceOptions.handleSignals property · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.imqserviceoptions.handlesignals/
Published: 2026-12-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.14.1 — generated reference, not hand-written

Let this package handle `SIGTERM`, `SIGINT`, `SIGHUP` and `SIGQUIT` for the process. Set it to `false` when the host owns shutdown.

**Signature:**

```typescript
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](https://imqueue.org/api/rpc/latest/rpc.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.

