shutdown stops the Groonga server process.
shutdown uses graceful shutdown by default. If there are some
running commands, the Groonga server process stops after these running
commands are finished. New command requests aren’t processed after
shutdown command is executed.
New in version 6.0.1:
shutdown uses immediate shutdown by specifying
mode parameter. The Groonga server process stops immediately
even when there are some running commands.
You need to set Request ID to all requests to use immediate shutdown.
New in version 9.1.2: The Groonga HTTP server accepts immediate shutdown immediately even when all threads are used.
This feature can only use on the Groonga HTTP server.
This command takes only one optional parameter:
shutdown use graceful shutdown by default:
shutdown # [[0,1337566253.89858,0.000355720520019531],true]
You can specify
mode parameter explicitly:
shutdown --mode graceful # [[0,1337566253.89858,0.000355720520019531],true]
You can choose immediate shutdown by specifying
shutdown --mode immediate # [[0,1337566253.89858,0.000355720520019531],true]
Immediate shutdown is useful when you don’t have time for graceful shutdown. For example, Windows kills service that takes long time to stop on Windows shutdown.
This section describes parameters of this command.
220.127.116.11.1. Required parameters#
There is no required parameter.
18.104.22.168.2. Optional parameters#
There are optional parameters.
Specifies shutdown mode. Here are available shutdown modes:
Stops after running commands are finished.
This is the default.
New in version 6.0.1: Stops immediately even if there are some running commands.
22.214.171.124. Return value#
true as body when shutdown is
shutdown doesn’t accept shutdown, error details are in
See Output format for