Signals
Command Line
On Unix systems, the NATS server responds to the following signals:
Signal | Result |
---|---|
| Kills the process immediately |
| Kills the process immediately and performs a core dump |
| Stops the server gracefully |
| Stops the server gracefully |
| Reopens the log file for log rotation |
| Reloads server configuration file |
| Stops the server after evicting all clients (lame duck mode) |
The nats-server
binary can be used to send these signals to running NATS servers using the -sl
flag:
Quit the server
Stop the server
Lame duck mode the server
Reopen log file for log rotation
Reload server configuration
Multiple processes
If there are multiple nats-server
processes running, or if pgrep
isn't available, you must either specify a PID or the absolute path to a PID file:
As of NATS v2.10.0, a glob expression can be used to match one or more process IDs, such as:
Windows
See the Windows Service section for information on signaling the NATS server on Windows.
Last updated