Shuts down the Mirror Replication Agent instance.
shutdown [immediate]
The optional keyword that shuts down the Mirror Replication Agent instance immediately.
When shutdown is invoked with no option, a normal (graceful) shutdown is performed.
In a normal shutdown, the Mirror Replication Agent first quiesces, and then the process terminates. For more information about quiescing the Mirror Replication Agent, see quiesce.
When shutdown is invoked with the immediate keyword, an immediate shutdown is performed.
In an immediate shutdown, the Mirror Replication Agent instance stops all processing, without regard to transactions in process or in transit, drops all connections immediately, and then terminates the application.
The shutdown command with the immediate keyword is valid at any time, when the Mirror Replication Agent instance is in any state, including transition between states.
The shutdown command with no keyword (normal shutdown) is valid when the Mirror Replication Agent instance is in either Admin or Replicating state, but not in state transition.