SHUTDOWN
Syntax
SHUTDOWN [NOSAVE | SAVE]
Time complexity: O(1)
ACL categories: @admin, @slow, @dangerous
Options
The SHUTDOWN
command supports optional modifiers to alter the behavior of the command:
SAVE
will force a DB saving operation even if no save points are configured.NOSAVE
will prevent a DB saving operation even if one or more save points are configured.
Also note: If Dragonfly receives one of the signals SIGTERM
and SIGINT
, the same shutdown sequence is performed.
See also Signal Handling.
Return
Simple string reply: OK
if ABORT
was specified and shutdown was aborted.
On successful shutdown, nothing is returned since the server quits and the connection is closed.
On failure, an error is returned.