# Replicate server procedures

This section describes how to start and stop a Replicate instance, and how to check whether an instance is running.

## Starting, stopping, or restarting a Replicate instance

The commands for starting, stopping, or restarting a Replicate instance, differ according to whether Replicate is running as a service instance or as a non-service instance.

### Starting, stopping, or restarting a Replicate service instance

To start, stop or restart a Replicate service instance, run the relevant command:

Start:

systemctl start &lt;servicename&gt;

Stop:

systemctl stop &lt;servicename&gt;

Restart:

systemctl restart &lt;servicename&gt;

Example:

systemctl start areplicate

### Starting, stopping, or restarting a Replicate non-service instance

To start, stop or restart a Replicate non-service instance, run the relevant command:

Start:

&lt;product\_dir&gt;/bin/instancename start

Stop:

&lt;product\_dir&gt;/bin/instancename stop

Restart:

&lt;product\_dir&gt;/bin/instancename restart

Example:

/opt/attunity/replicate/bin/instancename start

## Verifying that a Replicate instance is running

The command for verifying if the Replicate instance is running, differs according to whether Replicate is running as a service instance or as a non-service instance.

### Verifying that a Replicate service instance is running

To verify that a Replicate service instance is running, run the following command:

systemctl status servicename

Example:

systemctl status areplicate

### Verifying that a Replicate non-service instance is running

To verify that a Replicate non-service instance is running, run the following command:

&lt;product\_dir&gt;/bin/instancename status

Example command:

/opt/attunity/replicate/bin/instancename status

Example output:

` running: /opt/attunity/replicate/bin/repctl -d /opt/attunity/replicate/instancename  data service start port=4550 rest_port=4552
                 `