> For the complete documentation index, see [llms.txt](https://liieditors.docs.laws.africa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liieditors.docs.laws.africa/system-management/process-management.md).

# Process management

Use dokku to stop, start and restart the docker containers that host the website.

{% hint style="info" %}
Read more about [Dokku Process Management](https://dokku.com/docs/processes/process-management/).
{% endhint %}

To restart the website:

```
dokku ps:restart APP
```

To stop the website:

```
dokku ps:stop APP
```

To start the website after stopping it:

```
dokku ps:start APP
```

## Background tasks

Background tasks (such as updating the search index and ingesting content from remote sources) are run in a separate docker container.

Normally you only need one or two background task runners. If there are many tasks, you can increase the number of task runners to work through the tasks faster.

The number of background task runners does **not** impact the number of threads or processes serving the website.

For example, to scale up to 3 background task runners, use:

```
dokku ps:scale APP tasks=3
```

To scale back down to 1, use:

```
dokku ps:scale APP tasks=1
```
