# 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:

```bash
# Reopen log file for log rotation
nats-streaming-server -sl reopen

# Stop the server
nats-streaming-server -sl quit
```

If there are multiple `nats-streaming-server` processes running, specify a PID:

```bash
nats-streaming-server -sl quit=<pid>
```

See the [Windows Service](#windows-service) section for information on signaling the NATS Streaming Server on Windows.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.natsclub.cn/cn/yi-chan/stan/changes/process-signaling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
