SHUTDOWN

Syntax

  1. SHUTDOWN

Time complexity: O(1)

The command behavior is the following:

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.