# Shutdown/Restart the Trilio Appliance

To gracefully shut down the Trilio Appliance the following steps are recommended.

{% hint style="info" %}
Not following this guide and just sending the shutdown command to the Trilio appliance through the RHV-M GUI/API or through the CLI is working without errors.\
The automated stopping of all Trilio services will extend the shutdown process by up to 25 minutes.
{% endhint %}

## Verify no snapshots or restores are running

It is recommended to check in the RHV-M backups tab, that no snapshots or restores are running.

{% hint style="danger" %}
Stopping or restarting the Trilio appliance will cancel all running actively running backup or restore jobs. These jobs will be marked as errored after the system has come up again.
{% endhint %}

## Stop all Trilio processes

### Main processes workloadmanager

The following commands will stop the main processes of the Trilio appliance.

```
systemctl stop wlm-api
systemctl stop wlm-scheduler
systemctl stop wlm-workloads
systemctl stop tvault-config-api
systemctl stop tvault-object-store
```

### Secondary processes MySQL and RabbitMQ

The Trilio solution is using MySQL and RabbitMQ. It is not required but recommended to gracefully stop these services too before restarting the Appliance.

```
systemctl stop mysql
rabbitmqctl stop
```

## Shutdown/Restart the Appliance

{% hint style="info" %}
Restarting through CLI of the appliance requires root privileges. The rhv\_nw user will get enabled for this feature in a future update.
{% endhint %}

After the services have been stopped the Appliance can be restarted or shut down using standard Linux commands.

```
reboot
shutdown
```

