Skip to content
Process Signals

Process Signals

naati follows the NGINX master/worker signal protocol so existing systemd units, logrotate scripts, and container orchestrators work unchanged.

Master Process Signals

Send these signals to the PID stored in your pid file (e.g., /run/naati.pid or /run/nginx.pid):

SignalCLI EquivalentStatusBehavior
TERM, INTnaati -s stopImplementedFast shutdown — terminates workers immediately
QUITnaati -s quitImplementedGraceful shutdown — workers finish active requests and close idle connections before exiting
HUPnaati -s reloadImplementedZero-downtime configuration reload — validates new config, spawns new workers, gracefully drains old workers
USR1naati -s reopenImplementedReopen log files (used by logrotate after rotating access/error logs)
USR2—PlannedLive binary upgrade (.oldbin pidfile + inherited sockets) — tracked on the roadmap
WINCH—PlannedGraceful worker drain paired with USR2 live upgrade — tracked on the roadmap

Worker Process Signals

In normal operation, send signals to the master process rather than directly to workers. If a worker terminates unexpectedly, the master logs [alert], repairs interrupted shared-memory state across zones, and immediately respawns a replacement worker.