NaviServer - programmable web server

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

ns_shutdown(n) 4.99.19 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 config file). When timeout it is specified, it must be an integer >= 0.

COMMANDS

ns_shutdown ?-restart? ?timeout?

timeout Time in seconds to wait before shuting down the server

-restart send an interrupt signal to the server, leading to a non-zero exit code.

EXAMPLES

   ns_shutdown
   ns_shutdown 30

See Also

ns_kill

Keywords

restart, server built-in