Shuts down the Replication Agent instance, terminating its process.
When shutdown is invoked with no option, Replication Agent starts a normal (graceful) shutdown.
In a normal shutdown, Replication Agent first quiesces, and then the process terminates. See quiesce for more information about quiescing Replication Agent.
When shutdown is invoked with the immediate keyword, Replication Agent starts an immediate shutdown.
The shutdown command with the immediate keyword is valid at any time, when the Replication Agent instance is in any state, including transition between states.
The shutdown command with no keyword (normal shutdown) is valid when the Replication Agent instance is in the Admin, Replicating, or Replication Down state, but not in state transition.