ns_shutdown - Shut down NaviServer
This command shuts down the server, optionally waiting timeout seconds to let existing connections and background jobs finish. When this time limit is exceeded the server shuts down immediately.
When timeout is not specified the default or configured timeout is used (default 20). The default can be changed by the parameter shutdowntimeout in the global server parameters (section ns/parameters in the configuration file). When timeout it is specified, it must be a value >= 0.
timeout Time to wait before shutting down the server. The timeout can be specified in the form secs?:microsecs?, or secs.fraction, or as a number with a time unit.
-restart send an interrupt signal to the server, leading to a nonzero exit code.
ns_shutdown ns_shutdown 30s