From d55ec395a353ca7be7a542e2e048bad45058a401 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Tue, 6 Dec 2022 06:39:30 -0500 Subject: [PATCH] Update --signal usage help This includes `ldm` and `term`. Signed-off-by: Byron Ruth --- main.go | 2 +- server/opts.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index ac946ae5..767719fc 100644 --- a/main.go +++ b/main.go @@ -37,7 +37,7 @@ Server Options: -ms,--https_port Use port for https monitoring -c, --config Configuration file -t Test configuration and exit - -sl,--signal [=] Send signal to nats-server process (stop, quit, reopen, reload) + -sl,--signal [=] Send signal to nats-server process (ldm, stop, quit, term, reopen, reload) pid> can be either a PID (e.g. 1) or the path to a PID file (e.g. /var/run/nats-server.pid) --client_advertise Client URL to advertise to other servers --ports_file_dir Creates a ports file in the specified directory (_.ports). diff --git a/server/opts.go b/server/opts.go index d2cf0fc3..8bf29a79 100644 --- a/server/opts.go +++ b/server/opts.go @@ -4669,8 +4669,8 @@ func ConfigureOptions(fs *flag.FlagSet, args []string, printVersion, printHelp, fs.StringVar(&configFile, "c", "", "Configuration file.") fs.StringVar(&configFile, "config", "", "Configuration file.") fs.BoolVar(&opts.CheckConfig, "t", false, "Check configuration and exit.") - fs.StringVar(&signal, "sl", "", "Send signal to nats-server process (stop, quit, reopen, reload).") - fs.StringVar(&signal, "signal", "", "Send signal to nats-server process (stop, quit, reopen, reload).") + fs.StringVar(&signal, "sl", "", "Send signal to nats-server process (ldm, stop, quit, term, reopen, reload).") + fs.StringVar(&signal, "signal", "", "Send signal to nats-server process (ldm, stop, quit, term, reopen, reload).") fs.StringVar(&opts.PidFile, "P", "", "File to store process pid.") fs.StringVar(&opts.PidFile, "pid", "", "File to store process pid.") fs.StringVar(&opts.PortsFileDir, "ports_file_dir", "", "Creates a ports file in the specified directory (_.ports).")