Reconfigure and restart RepAgent after you create the logical connection.
If you designate as the active database a database that was previously added to the replication system, the RepAgent thread for the active database shuts down when you create the logical connection.