NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_shutdown(n) 4.99.30 naviserver "NaviServer Built-in Commands"

Name

ns_shutdown - Shut down NaviServer

Table Of Contents

Synopsis

Description

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.

COMMANDS

ns_shutdown ?-restart? ?timeout?

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.

EXAMPLES

 ns_shutdown
 ns_shutdown 30s

See Also

ns_kill, ns_time

Keywords

restart, server built-in