# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trilio.io/rhv/admin-guide/shutdown-restart-the-triliovault-appliance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
