Signal Handling - messagebus/lapine GitHub Wiki

The Lapine consumer traps several signals.

INT

This stops the EventMachine run loop, allowing the process to exit.

TERM

Tell the consumer EventMachine run loop to stop, allowing the process to then exit.