SeaCat Gateway Signal Handling

A signal is an asynchronous notification sent to a process to notify it of an event that occurred. When a signal is sent, the operating system interrupts the target process' normal flow of execution to deliver the signal.

SeaCat Gateway supports the following signals:

SIGTERM

The SIGTERM signal is sent to a process to request its termination. This allows the process to perform nice termination releasing resources and saving state if appropriate.

SIGHUP

The SIGHUP tells the process to reopen all of its log files and restart child processes. It is used, for example, for log rotation feature.

SIGUSR2

The SIGUSR2 signal is sent to a process for its verbose logging.

Enable verbose logging for particular process

$ kill -USR2 20927
07Apr16 17:17:25.116   20927  INFO: Verbose logging disabled

Disable verbose logging for particular process

$ kill -USR2 20927
07Apr16 17:17:25.116   20927  INFO: Verbose logging disabled

Enable verbose logging for all processes at once

$ killall -USR2 seacatd

Found a mistake? Please contact us.