Process Signaling
On Unix systems, the NATS Streaming Server responds to the following signals:
Signal
Result
SIGKILL
Kills the process immediately
SIGINT, SIGTERM
Stops the server gracefully
SIGUSR1
Reopens the log file for log rotation
The nats-streaming-server binary can be used to send these signals to run NATS Streaming Servers using the -sl flag:
1
# Reopen log file for log rotation
2
nats-streaming-server -sl reopen
3
4
# Stop the server
5
nats-streaming-server -sl quit
Copied!
If there are multiple nats-streaming-server processes running, specify a PID:
1
nats-streaming-server -sl quit=<pid>
Copied!
See the Windows Service section for information on signaling the NATS Streaming Server on Windows.
Last modified 2yr ago
Export as PDF
Copy link
Edit on GitHub