Skip to content

Commit c75e031

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

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 a command to a running nats-server:
41+
ldm - graceful shutdown (evicts clients gradually) (SIGUSR2)
42+
quit - graceful shutdown (SIGINT)
43+
term - graceful shutdown (SIGTERM)
44+
stop - immediate termination (SIGKILL)
45+
reload - reload configuration (SIGHUP)
46+
reopen - reopen log files (SIGUSR1)
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)