Skip to content

Commit 1c57db2

Browse files
committed
clarify --signal flag help
Signed-off-by: Alex Bozhenko <[email protected]>
1 parent 26a2474 commit 1c57db2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ Server Options:
3737
-ms,--https_port <port> Use port for https monitoring
3838
-c, --config <file> Configuration file
3939
-t Test configuration and exit
40-
-sl,--signal <signal>[=<pid>] Send signal to nats-server process (ldm, stop, quit, term, reopen, reload)
40+
-sl,--signal <command>[=<pid>] Send signal to a running nats-server
41+
ldm (SIGUSR2) - graceful shutdown (evicts clients gradually)
42+
quit (SIGINT) - graceful shutdown
43+
term (SIGTERM) - graceful shutdown
44+
stop (SIGKILL) - immediate termination
45+
reload (SIGHUP) - reload configuration
46+
reopen (SIGUSR1) - reopen log files
4147
<pid> can be either a PID (e.g. 1) or the path to a PID file (e.g. /var/run/nats-server.pid)
4248
--client_advertise <string> Client URL to advertise to other servers
4349
--ports_file_dir <dir> Creates a ports file in the specified directory (<executable_name>_<pid>.ports).

0 commit comments

Comments
 (0)