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):
| Signal | CLI Equivalent | Status | Behavior |
|---|---|---|---|
TERM, INT | naati -s stop | Implemented | Fast shutdown — terminates workers immediately |
QUIT | naati -s quit | Implemented | Graceful shutdown — workers finish active requests and close idle connections before exiting |
HUP | naati -s reload | Implemented | Zero-downtime configuration reload — validates new config, spawns new workers, gracefully drains old workers |
USR1 | naati -s reopen | Implemented | Reopen log files (used by logrotate after rotating access/error logs) |
USR2 | — | Planned | Live binary upgrade (.oldbin pidfile + inherited sockets) — tracked on the roadmap |
WINCH | — | Planned | Graceful 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.